Separate X and Y location

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Separate X and Y location

Post by croivo » Fri Jun 06, 2014 10:07 pm

How to separate the position of some object to X and Y? I have this code:

Code: Select all

put the location of me into field myField
But I only want X position! Without Y...

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Separate X and Y location

Post by sefrojones » Fri Jun 06, 2014 10:12 pm

try this:

Code: Select all

 put item 1 of the location me into field "MyField"

croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: Separate X and Y location

Post by croivo » Fri Jun 06, 2014 10:14 pm

Yup... that's it! Thanks!

Post Reply