Post Reply 
Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226)
02-08-2017, 04:21 AM
Post: #13
RE: Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226)
I doubt it is due to times, I think it is more a language error, probably with ISKEYDOWN, I still think that a third event should not be registered.

This code gives a space of time between each WAIT (-1), it registers 3 events:
Code:
EXPORT REPEAT_WAIT()
BEGIN

 LOCAL Action,Cnt;

 RECT;
 TEXTOUT_P("Touch the screen",15,70,5);
 TEXTOUT_P("WAIT(-1) value:        --",20,100,2);
 TEXTOUT_P("Number of Events:  --",20,115,2);

 REPEAT

  Action:=WAIT(−1);

  RECT_P(125,100);
  Cnt:=Cnt+1;
  TEXTOUT_P(Action,125,100,2);
  TEXTOUT_P(Cnt,125,115,2);

 UNTIL 0*WAIT(1.005);

END;

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226) - Carlos295pz - 02-08-2017 04:21 AM



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