Post Reply 
Prime G2 crashes with break command
09-02-2019, 10:05 AM
Post: #2
RE: Prime G2 crashes with break command
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


Visit this user's website 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 - BartDB - 09-02-2019 10:05 AM



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