name resolution stinker

Bob Sneidar bobsneidar at iotecdigital.com
Wed Apr 11 18:58:21 CEST 2018


It probably would help but I am referencing the object in other places, for instance I am getting the tablename of group tGridLongName and that fails as well. 

As I posted the workaround is to reference it by group <shortname> of <long owner reference>

Bob S


> On Apr 11, 2018, at 09:51 , Mike Bonner via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Not sure if this will be userful, but would placing the following script in
> your stack (or frontscript I guess) work easier?
> 
> command amIHere pName
> try
>   dispatch "imHere" to group pName of the current card
> catch tError
>   return false
> end try
> end amIHere
> 
> command imHere
>   return true
> end imHere
> 
> Might be cheating using try this way, but I think it should work pretty
> well.
> 
> If the dispatch fails due to object (or in this case, background) not found
> error, you get false, if the dispatch is handled you get true.




More information about the use-livecode mailing list