Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 783

Talking LiveCode • Strange custom prop behavior

$
0
0
This was maddening.

One can set a custom prop to anything one wants. But one cannot set a custom prop to the contents of a variable with the same name:

CODE:

on mouseUpput random(999) into tempset the XYZ of me to temp  --works, XYZ contains a random number.set the temp of me to temp -- NOPE!end mouseup
A new custom prop, named with the value of the variable itself, is created, and contains (what else?) the value of the variable. At least LC got that part right. :roll:

Craig

Statistics: Posted by dunbarx — Thu Jul 18, 2024 2:22 pm



Viewing all articles
Browse latest Browse all 783

Trending Articles