export snapshot woverwrites variable?

Klaus major-k klaus at major-k.de
Thu Dec 10 09:29:16 EST 2020

Hi Mark,

> Am 10.12.2020 um 15:25 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>:
> On 2020-12-10 13:55, Klaus major-k via use-livecode wrote:
>> Hi friends,
>> ## Doing this again fixes the inconvenience and I can continue:
>> put dasObjekt() into tObject
>> ...
>> Funky, funky!?
> Nope - not funky.

a littel bit? 8-)

> Container syntax can be either a variable (with array indices or without), or an object chunk which has a notion of 'text' (i.e. button, field, image).
> If it is a variable then the variable gets modified.
> If it is an object chunk then the text of the object gets changed.
> Variables are only treated as (potential) object chunks when being evaluated as a source, and only then if the thing operating on them expects an object. e.g. the blendLevel of tObject (property syntax only makes sense when targetting an object chunk, so the contents of tObject are parsed as a control chunk).
> Indeed, if this wasn't the case then you wouldn't ever be able to change tObject in the following script:
>  local tObject
>  put the long id of field 1 into tObject
>  -- If variable containers (targets) resolved as objects first:
>  put "foo" into tObject -- this would set the text of the field to "foo"
> Warmest Regards,
> Mark.

thank you for this explanation, wil take this into account the next time!



Klaus Major
klaus at major-k.de

More information about the use-livecode mailing list