WEND
Ends a loop structure delimited by WHILE ... WEND instructions. The loop is repeated while Expression is true. DO WHILE ... LOOP and WHILE ... WEND are equivalent.
PUBLIC SUB Form_Open()
DIM a AS Integer
a = 1
WHILE a <= 10
PRINT "Hello World"; a
INC A
WEND
END
BREAK, CONTINUE, DO, FOR, FOR EACH, LOOP, REPEAT, WHILE, WITH