Welcome! Log In Create A New Profile

Advanced

Limits in WDL usage

Posted by Malc 
Malc
Limits in WDL usage
August 22, 2008 12:54PM
Hi Guys

Anyone out there using WDLs?

I am trying to create some shared libraries, which includes 'generic' code such as base classes for data and connection handling etc, plus sets of global procedures containing standard functions and constants.and variables

When I attempt to use this library with an executable, the global procedures do not seem to be visible, and the classes do not seem to include the methods and members inherited from their superclasses.

e.g.

In the WDL I have

CCountries is Class

inherits CBaseData

MyProperty1 is String = "Hello"


CBaseData is Class

MyProperty2 is string = "World"



In the exe, I have a form which has an oLib property
This is initialised to CCountries class found in the WDL file.

Global Declarations of MyForm

oLib is CCountries

Initialisation of MyForm

LOCAL
lsTest is string

lsTest = oLib:MyProperty1 // Fine, can be seen

lsTest = oLib:MyPropery2 // This errors with:

// 'MyProperty2' element not found in 'CCountries' class.



Is this a known issue?




TIA

Malc
Malc
Re: Limits in WDL usage
August 22, 2008 01:21PM
As a follow on, I have discovered that whilst inheritance seems to be a problem, object referencing seems ok, so...

In the WDL

CCountries is Class

MyProperty1 is String = "Hello"

MyObject1 is CBaseData


CBaseData is Class

MyProperty2 is string = "World"



In the exe with the form

Global Declarations of MyForm

oLib is CCountries

Initialisation of MyForm

LOCAL
lsTest is string

lsTest = oLib:MyProperty1 // Fine, can be seen

lsTest = oLib:MyObject1:MyPropery2 // seems to be ok




Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: