Explicit Variables

Mark Waddingham mark at livecode.com
Fri Jan 29 02:31:21 EST 2016


That should work fine. The explicitVars property is only set in the IDE around code which compiles / sets object scripts (i.e. In the script editor). It is false the rest of the time.

Mark.

Sent from my iPhone

> On 29 Jan 2016, at 02:45, Kay C Lan <lan.kc.macmail at gmail.com> wrote:
> 
> Not a discussion about the pros and cons, or a discussion on arrays, I just
> need a simple answer.
> 
> put "apple,orange,banana" into tFruit
> repeat with x = 1 to the number of items in tFruit
>  do "put item x of tFruit into tVar" & x --create a dynamic variable name
> end repeat
> put tVar2
> 
> I assume creating dynamic variable names will not work with
> explicitVariables set in the IDE but it will actually work in a standalone.
> 
> Not work / work
> or
> Not work / not work
> 
> Is all I need to know.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list