Page 1 of 1
Extract a element of a tuple
Posted: Mon Oct 26, 2015 4:41 am
by problème
Hello,
I want to know how to extract the first number of this result
for exemple this code print: X,Y
i want to extract X
Re: Extract a element of a tuple
Posted: Mon Oct 26, 2015 4:45 am
by ClipArtGuy
Check out "mouseh" and "mousev" in the dictionary.

Re: Extract a element of a tuple
Posted: Mon Oct 26, 2015 5:49 am
by dunbarx
What clipArtGuy said.
Also know that there are usually many properties that LC contains in its vocabulary that might do what you need, or more, or a little different.
Like "item 1 of the mouseLoc". I only mention this, using "mouseLoc" itself, because you did. You might say, but in any case certainly need to know, that "the mouseLoc" is a 2-tuple, and therefore might lend itself to deconstruction.
Craig Newman
Re: Extract a element of a tuple
Posted: Mon Oct 26, 2015 1:00 pm
by Klaus
Bonjour problème,
1. welcome to the forum!
2. Please check these stacks to learn more about the very basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus
Re: Extract a element of a tuple
Posted: Mon Oct 26, 2015 3:02 pm
by problème
thanks for the help