Post Reply 
Bug i GETKEY (8151)
06-27-2015, 09:50 AM
Post: #2
RE: Bug i GETKEY (8151)
The "WAIT(.5)" command on line 11 is missing the ending semicolon, (posted program). Adding the semi, the program seems to terminate on any keypress, which is what, I think, you intended.

Code:

EXPORT TESTGETKEY()
BEGIN

  LOCAL i,a;
  AAngle▶a;
  2▶AAngle;

  REPEAT
    RECT_P();
    ARC_P(G0,160,120,100);
    LINE_P(160,120,100*COS(i)+160,100*SIN(i)+120);
    i+5▶i;
    WAIT(.5);           //  <==  added semicolon here
  UNTIL GETKEY≥0;

  a▶AAngle

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


Messages In This Thread
Bug i GETKEY (8151) - slawek39 - 06-27-2015, 08:31 AM
RE: Bug i GETKEY (8151) - DrD - 06-27-2015 09:50 AM
RE: Bug i GETKEY (8151) - slawek39 - 06-27-2015, 10:00 AM
RE: Bug i GETKEY (8151) - Thomas_Sch - 06-27-2015, 10:59 AM
RE: Bug i GETKEY (8151) - DrD - 06-27-2015, 10:14 AM
RE: Bug i GETKEY (8151) - slawek39 - 06-27-2015, 10:29 AM
RE: Bug i GETKEY (8151) - DrD - 06-27-2015, 11:05 AM
RE: Bug i GETKEY (8151) - slawek39 - 06-27-2015, 11:05 AM
RE: Bug i GETKEY (8151) - StephenG1CMZ - 10-12-2015, 11:05 PM
RE: Bug i GETKEY (8151) - komame - 10-13-2015, 12:28 PM
RE: Bug i GETKEY (8151) - hpfx - 10-14-2015, 09:44 PM
RE: Bug i GETKEY (8151) - StephenG1CMZ - 10-17-2015, 07:59 AM



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