Storing and object reference in a var

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jan 25 16:44:29 CET 2017


I want to create a variable called tTargetField so I use

put "Hello" into tTargetField

Now I want to put something into a field so I create a variable called tTargetField2 and
put the long id of field "foo" into tTargetfield2

Then to put something into the field I
put "Hello" into tTargetField2

Now do you see? All I am doing here is replacing the value of tTargetField2 that used to contain the long id of field "foo" with the word "Hello". How does the engine know what you mean? It's Ambiguous.

Bob S


On Jan 24, 2017, at 19:15 , dunbarx via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

I am not sure what you mean.

Both lines of code seem fine. What is not working?

Craig Newman



More information about the use-livecode mailing list