PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WinDev18 .net class that uses another class as a variable syntax.
WinDev18 .net class that uses another class as a variable syntax.
Débuté par rob, 18 déc. 2014 20:44 - Aucune réponse
Membre enregistré
105 messages
Posté le 18 décembre 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.