•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  STG Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : GFA-Basic Editor
Author      : Lonny Pursell
Version     : GBE.HYP v3.74 (12/31/2023)
Subject     : Programming/Documentation
Nodes       : 171
Index Size  : 4296
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Default
@help       : STG Help
@options    : +g -i -s +z
@width      : 75
@hostname   : THING   
@hostname   : STRNGSRV
@hostname   : HIGHWIRE
@hostname   : CAB     
View Ref-FileThis option will read DATA statements and convert them into an inline file
(*.inl) in the temporary path as define in the Paths dialog. A small listing
(*.lst) is also generated showing how to access the data from the newly
created inline.

The main idea here is that DATA statements are not a very compact storage
method in a compiled application. Each entry in DATA statement wastes a null
byte. Thus a set of DATA statements containing 256 entries, also wastes 256
bytes.

Compressing this into an inline and reading it a different way will let you
regain this wasted space. This option only works with byte, word, and long
integer values. Boolean, float, and strings are not supported.

Place the cursor on the label just above the first DATA statement in the group
of lines, then click the menu option. It will begin reading the DATA
statements and stop at the first line that is not a DATA statement.
The label name will be used to name the inline in the generated *.lst file.

GBE will request a storage method: byte|, word&, or long%

Typical way DATA is handled:
  RESTORE test
  FOR i=0 to 19
    READ b
    t$=t$+CHR$(b)
  NEXT i
  test:                     <- place cursor here
  DATA 0,1,2,3,4,5,6,7,8,9  <- click menu option (start)
  DATA 9,8,7,6,5,4,3,2,1,0  <- stops here
  '

Results for this example:
test.inl
test.lst -> INLINE test%,20

GBE will not alter the source code in the edtior in any way. It's up to the
coder to rework the source and replace the DATA statements with the inline.