End Command

Purpose

Terminates a GFA-BASIC program.

Syntax

End

Description

End terminates a GFA-BASIC program.

Example

Local i%

OpenW # 1 : Win_1.PrintWrap = True

For i% = 1 To 100

Print i%`

Next i%

End

Print 220

Opens a window and prints the digits from 1 to 100. The program then ends. The last line Print 220 is not executed.

OpenW 1 , 10, 10, 235, 255

Ocx Command but1 = "click me", 10, 10, 200, 200

Do

Sleep

Until Me Is Nothing

 

Sub but1_Click

CloseW 1

End

EndSub

Known Issues

If End is used in the IDE, the IDE can suddenly freeze.

For more information, see here for more details.

See Also

Quit

{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}