Post Reply 
Programming error on the physical calculator only
08-31-2014, 02:38 AM
Post: #1
Programming error on the physical calculator only
I'm a newbie to the HP Prime (and programming itself), so I wrote a little snippet to better learn its programming language. Since I use Linux, I've installed the emulator and Connectivity Kit on a VM, and wrote the code there. The problem is my VM won't find the calculator, so I had to type it directly to my physical calculator.
But when I try to verify it, it gives me the following errors (works fine on the emulator, though):


EXPORT MOUSEDISPLAY(CSIZE)
BEGIN
LOCAL X,Y;
RECT;
REPEAT
X := MOUSE(0);
Y := MOUSE(1);
IF ((MOUSE(0) != X) OR (MOUSE(1) != Y)) THEN
RECT;
TEXTOUT_P("X: " + RIGHT(LEFT(STRING(SETBASE(X,| 3)), 4), 3) + ", Y: " + RIGHT(LEFT(STRING(SETBASE(Y, 3)), 4), 3), 110, 220, 4, #000000h);
LINE_P(X - CSIZE,| Y, X + CSIZE, Y, #FF0000h);
LINE_P(X,| Y - CSIZE, X, Y + CSIZE, #FF0000h);
END;
UNTIL GETKEY == '4';
END;


Software version: 2014 3 31 (6030) A
Emulator is 6031. I can't update because, as said before, I'm running Linux and the VM doesn't recognize my calculator.

What am I missing?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming error on the physical calculator only - gabrieljcs - 08-31-2014 02:38 AM



User(s) browsing this thread: 1 Guest(s)