PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WinDev18 .net class that uses another class as a variable syntax.
WinDev18 .net class that uses another class as a variable syntax.
Iniciado por rob, 18,dic. 2014 20:44 - No hay respuesta
Miembro registrado
105 mensajes
Publicado el 18,diciembre 2014 - 20:44
So this is my first time messing with .Net classes in WinDev.

I'm working on implementing the Zxing barcode reading .Net assemblies into an application and I'm not sure what the proper syntax for this would be.

I have a class that in their C# example is initialized like this.

public WindowsFormsDemoForm()
{
InitializeComponent();
barcodeReader = new BarcodeReader
{
AutoRotate = true,
TryInverted = true,
Options = new DecodingOptions {TryHarder = true}
};
}

I'm not sure to properly the syntax for creating the Barcode.Options variable from the DecodingOptions class is.
My WL code is as follows
clBCReader is BarcodeReader
clBCReader.AutoRotate = True
clBCReader.TryInverted = True


WinDev doesn't like trying to declare it as:
clBCReader.Options is DecodingOptions


Any insight would be greatly appreciated.