X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07 Dec 2022 08:33 PM by  Ben Castellani
REPEAT...UNTIL
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Manaf Alkhuzaei



New Member


Posts:1
New Member


--
24 Nov 2022 07:42 AM
    Is there a way to use (Repeat begin/endrep until) and the condition that the code is run 100 times?

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    07 Dec 2022 08:33 PM
    Not exactly sure what you are asking but what about these?

    A = 1
    REPEAT BEGIN
    ...do something here....
    A = A+1
    ENDREP UNTIL A EQ 100

    A = 1
    WHILE (A NE 101) DO BEGIN
    ...do something here...
    A=A+1
    ENDWHILE
    You are not authorized to post a reply.