"the effective visibility"

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sat Aug 9 08:08:36 EDT 2008


Bonjour Bernard,

I'm afraid you are right because the owner uses 'names'...
But when I set a var to the long ID of the long owner of tObj' and  
use it, it seems to work reliably.

Le 9 août 08 à 13:56, Bernard Devlin a écrit :

> Hi Eric
>
> I'm afraid it is worse than that.  Things like this are not  
> reliable: "get
> the cpValue of the owner of field mydata", where the owner is a group.
> Sometimes it will work, other times Rev will actually return the  
> contents of
> another field in another group (and these are not controls that  
> were created
> on the fly).  Since wasting a whole day tracking down that bug (in  
> code that
> had appeared to be working for weeks), I now _always_ get the long  
> id of
> (for example) field myData, and then parse the long ID.
>
> Bernard
>
> On Sat, Aug 9, 2008 at 12:12 PM, Eric Chatonet <
> eric.chatonet at sosmartsoftware.com> wrote:
>
>> AFAIK the owner's property is reliable as long as you don't try to  
>> code
>> some expression using the owner of the owner of the owner of tObj...
>> Using this form, I have got unexpected results.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list