Hello! Really new with Xojo so I would appreciate any help I could get
I have an oval (oval1) and I am trying to make it go left when the user presses the left key, and make it go right when the user presses the right key.
I made a keydown event handler, and this is the code I put in it.
[code] dim ovalpos as integer
ovalpos = oval1.left
if asc(key) = 28 then
ovalpos - 5 return true
elseif asc(key) = 29 then
ovalpos + 5 return true
When I test this out though, it says that it is unable to do it because ovalpos is not an array. I don’t really understand what that means. Thanks in advance for any help!
(ps. Sorry if my english isn’t very good, it’s not my native language.)