Referencing class variables

Thad Bogert thad at technosolver.com
Mon Nov 19 13:35:08 EST 2018


Thanks Peter,

The notation works great for accessing the properties of the variable, but not the contents of the variable itself.

> On Nov 19, 2018, at 7:43 AM, Peter van Rooij <pfvanrooij at gmail.com> wrote:
> 
> Hello Thad
> 
> You should use:
> 
> $libs.myLib.$windows.wMyWindow.$cvardefs.cClassVar
> 
> if I remember correctly
> 
> Regards
> 
> Peter
> 
>> On 19 Nov 2018, at 16:40, Thad Bogert <thad at technosolver.com> wrote:
>> 
>> Hi All,
>> 
>> Does anyone know of a way to obtain the contents of a class variable from a class that has no instances?  The following works if there is an instance:
>> 
>> $iwindows.wMyWindow.cClassVar
>> 
>> However if there is no instance, I am not able to reference the variable.  The following notation does not seem to work:
>> 
>> $libs.myLib.$windows.wMyWindow.$cvars.cClassVar
>> 
>> 
>> Thanks!
>> 
>> Thad
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list