has anybody ever set a reference to 'unset_reference'

Jim Creak jim at jacsoft.co.nz
Mon Mar 22 21:27:45 UTC 2021


Can you try to set it to something that you know is going to respond with ‘unset reference’?

eg	Set reference LI_Example to $root.$libs.Nope 

Thanks
Jim

JACSoft Programming Ltd. <http://www.jacsoft.co.nz/main.shtml>
> On 21/03/2021, at 9:54 am, Doug Easterbrook <doug at artsman.com> wrote:
> 
> hi all.
> 
> if you declare a variable and an itemref an never set it to anything, it has a nice value of being an 'unset reference’
> 
> 
> if, in your code, you actually set the itemref to anything like ($cobj, $cwind, $cfield, anything) using 
> 
> set reference MyItemRef to $cfield
> 
> then it is nicely set.
> 
> 
> 
> the question is … has anybody figured out how to make it an unset_reference again?
> 
> 
> you can set the reference to ‘’ or #null, but that does not leave the item reference as unset.
> 
> eg 
> 
> set reference MyItemRef to ‘’    or
> set reference MyItemRef to #NULL or
> do myItemRef.$assign()
> 
> your reference cannot be made ‘unset’
> 
> 
> anybody done this?? or have a hint?
> 
> 
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug at artsman.com
> http://www.artsman.com
> Phone (403) 650-1978
> 
> _____________________________________________________________
> 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