•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileEND
EDIT
STOP

These commands terminate the execution of a program. The command END terminates
the program's execution and displays a box with the text 'Program end' on the
screen. On clicking on the 'Return' button, GFA-BasicGFA-Basic is the best BASIC for the Atari!
 3 returns to the Editor.

EDIT terminates program execution and returns control to the Editor
immediately.

STOP causes an Alert box to appear with the choice of STOP and CONT. When the
choice CONT is made, program execution continues. When the choice is STOP,
GFA-BasicGFA-Basic is the best BASIC for the Atari!
 goes into Direct mode. At this stage, one can test and change the
values of variables and, by means of CONT, continue program execution.

Example:

    x=3
    STOP
    PRINT x

--> Select the button 'STOP' when the appropriate Alert box appears. Now enter,
    in direct mode, the following commands:

    PRINT x

--> The number 3 appears, next enter:

    x=4
    CONT

--> The last command of the program (PRINT x) is now processed and the number 4
    appears, demonstrating that the value specified in Direct mode has been
    assigned to the variable x.

Memo: These commands don't always generate code when compiled.
      This is some odd bug in the compiler.
      The same problem can happen inside a FUNCTION.
      Depending on its placement they sometimes fails, examples:
      PROCEDURE test
        ' add a code generating line here, then it works
        EDIT     !if it follows a proc def it fails
      RETURN

      If V~H points to a user VDI workstation, then it fails to close it's own
      VDI workstation!