Post Reply 
Prime G2 crashes with break command
09-02-2019, 05:33 PM
Post: #10
RE: Prime G2 crashes with break command
Hi,

Unfortunately I do not have a G2 to test.

However, another way to do the program:
Code:
EXPORT Another_Loop()
BEGIN
LOCAL A, B;
 A:=0;
 WHILE B<>1 DO
  A:=A+1;
  B:= (A+3) MOD 5;
 END;
 MSGBOX(A);
END;

or the following:
Code:
EXPORT Demo_BREAK()
BEGIN
LOCAL A, B;
 FOR A FROM 1 TO 10 DO
  B:= (A+3) MOD 5;
   IF B==1 THEN
    MSGBOX(A);
    KILL;
   END;
 END;
END;

However, this one will show an error message after the MSGBOX result is displayed.

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 05:33 PM



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