Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
XandY
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location:
Posted: 9th Sep 2010 02:17
When I add in the code-

"print Object Position X(1) 50,50"

It gives me a syntax error exactly 3 lines after the previous code.

No matter WHERE I move the code, I get a syntax error. Even on blank lines.

HELP!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Sep 2010 15:48
That's because the line doesn't make sense as it is.

Did you mean to put a comma between the ) and the 50?

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
Madscientist
16
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 9th Sep 2010 15:56
What are the 50,50 for?

My computer surpasses all the technologies of the day. What computer do I have?

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Sep 2010 16:26
I think you mean:



or, faster and easier:



TheComet

Dia
21
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 9th Sep 2010 16:29 Edited at: 9th Sep 2010 16:30
the 50,50 may be a confusion between PRINT and TEXT

PRINT OBJECT POSITION X(1),50,50

outputs 105050 at the current cursor position (assuming object 1 is at x=10)

text 50,50,str$(object position x(1))

outputs 10 at screen coords 50,50

which one are you trying to do xandy?

edit: lol comet got in a couple minutes before me

I reread your original post, you seem to be saying that the 3rd line AFTER your PRINT command is indicated as the error. Is that what you are trying to say?

This is not the Sig you are looking for....
XandY
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location:
Posted: 9th Sep 2010 23:33
Sorry, I just had a syntax error, thanks for helping ^_^

Login to post a reply

Server time is: 2026-07-22 12:41:22
Your offset time is: 2026-07-22 12:41:22