Post Reply 
Prime G2 crashes with break command
09-02-2019, 11:48 AM
Post: #3
RE: Prime G2 crashes with break command
(09-02-2019 10:05 AM)BartDB Wrote:  Hi,

It might be because you haven't declared your variables. This could cause instability (I have had the 39Gii (Prime's smaller brother) hang due to this requiring battery removal).

Code:

EXPORT Demo_BREAK()
BEGIN
LOCAL A, B;                     <-- add this line
FOR A FROM 1 TO 10 DO
  B:= (A+3) MOD 5;
  IF B==1 THEN BREAK;
END;
END;
END;

Regards
-Bart

Thanks for the reply. The program is one of the built in demos on the G2 so shouldn't need altered. I tried what you suggested though and still get the crash.

Steve
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Prime G2 crashes with break command - sc99cs - 09-02-2019 11:48 AM



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