Referencing class variables

Phil (OmnisList) phil at pgpotter.co.uk
Tue Nov 20 03:05:50 EST 2018


Hi Thad,

If there are no instances, then you only have the initial value, if its set:
$objinitval

regards
Phil Potter
Based in Chester in the UK.

On 19/11/2018 18:35, Thad Bogert wrote:
> 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
> _____________________________________________________________
> 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