name resolution stinker

Bob Sneidar bobsneidar at iotecdigital.com
Wed Apr 11 12:08:11 EDT 2018


Ok here is a real stinker. 

put quote & tDataGrid & quote && "of" && tCurrentCard into tGridLongName
put (there is a group tGridLongName) into tGroupExists
if not tGroupExists then next repeat

tGridLongName resolves to:
"dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode"

When in the message box I type:
put there is a group "dgsites" of card id 1002 of stack "Sites" of stack "/Users/bobsneidar/Documents/Livecode Projects/Forms Generator 8/Forms Generator 8.livecode"

I get true. 

But the code:
put (there is a group tGridLongName) into tGroupExists

returns false. tGridLongName is not resolving in this statement. 

Is this another use case for DO?

Bob S





More information about the Use-livecode mailing list