Page 1 of 1
create a point
Posted: Tue Mar 15, 2022 3:50 pm
by Samuele
Hi, how can i create a point out of two variables?
for example:
Code: Select all
set _someVariable to point (_X, _Y)
(_X and _Y are two variables)
Re: create a point
Posted: Tue Mar 15, 2022 4:23 pm
by jmburnod
Hi,
Maybe
Code: Select all
put _X & "," & _Y into _someVariable
Best regards
Jean-Marc
Re: create a point
Posted: Tue Mar 15, 2022 4:33 pm
by richmond62
Do you man by point a location on the screen?
Re: create a point
Posted: Tue Mar 15, 2022 4:40 pm
by Samuele
richmond62 wrote: ↑Tue Mar 15, 2022 4:33 pm
Do you man by point a location on the screen?
yes, why?
Re: create a point
Posted: Tue Mar 15, 2022 5:03 pm
by Samuele
jmburnod wrote: ↑Tue Mar 15, 2022 4:23 pm
Hi,
Maybe
Code: Select all
put _X & "," & _Y into _someVariable
Best regards
Jean-Marc
thanks, it worked.
Re: create a point
Posted: Tue Mar 15, 2022 5:51 pm
by richmond62
Because I did not understand what you meant by 'create',
when what you meant was 'define' a point.
Re: create a point
Posted: Tue Mar 15, 2022 5:56 pm
by dunbarx
Richmond.
I think the phrase "create a point out of two variables" actually makes sense, in the, er, sense that the OP already had possession of two distinct variables, but wanted to transform them into a single valid LC point.
Craig
Re: create a point
Posted: Tue Mar 15, 2022 6:17 pm
by richmond62
Possibly.
My 'problem', if it is a problem, is that I have a degree in Philosophy (I mean Philosophical method, not what dead people wrote), and am an EFL teacher, and so look for precision in meaning and tend to be critical of non-native speakers usage of words.
Re: create a point
Posted: Tue Mar 15, 2022 8:17 pm
by FourthWorld
Samuele wrote: ↑Tue Mar 15, 2022 5:03 pm
jmburnod wrote: ↑Tue Mar 15, 2022 4:23 pm
Hi,
Maybe
Code: Select all
put _X & "," & _Y into _someVariable
Best regards
Jean-Marc
thanks, it worked.
It can be even simpler: the comma concatenation need not be explicit in variable assignments - this works: