Post Reply 
Programmatically changing Entry mode crashes iOS Pro App
05-04-2020, 10:05 AM (This post was last modified: 06-03-2020 01:08 PM by pinkman.)
Post: #1
Programmatically changing Entry mode crashes iOS Pro App
Hi,
I created the following function to automatically switch between Textbook and RPN modes:
Code:

KEY K_Menu()
BEGIN
 LOCAL s := {"Textbook", "Algebraic", "RPN"};
 Entry := ABS(Entry-2);
 TEXTOUT_P(s(Entry+1), 15, 9, 1, RGB(255,180,80));
 WAIT(1);
 RETURN -1; // see edit comment below
END;

It works fine on my physical HP Prime, but on the iOS App it crashes every 2 switches.
Am I doing something wrong?

Thanks,
Thibault

PS: yes I know, in case of algebraic mode it stays in this mode, but I never use it.

[edit] Added « RETURN -1; » in the code, according to Cyrille’s suggestion (just in case you copy it directly to your Prime without reading the whole thread)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programmatically changing Entry mode crashes iOS Pro App - pinkman - 05-04-2020 10:05 AM



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