HTBasic Help
×
Menu
Index

LOAD

Loads a user program into memory.
 
 LOAD file-specifier [,run-line]
 
Usage:
LOAD Story$
LOAD "Utility",200
 
Example: LOAD.BAS
 
Description:
LOAD gets a previously stored BASIC program into memory. When LOADing a program, the current program and all variables not in COM are deleted. Each COM block in the new program is compared to the old COM blocks in memory. Any mismatched or unreferenced COM blocks are deleted. If LOAD is used in a program, the newly loaded program begins running at either the first line or the specified line. If LOAD is used as a keyboard command and the run line is specified, the program begins running at that line or the next higher line.
 
PROG files are transportable between different types of computers running HTBasic only if the computers use the same byte ordering. For example, the DOS and Windows versions of HTBasic can share PROG files.
 

Porting Issues

HTBasic does not support HP BASIC PROG files. To move programs between HTBasic and HP BASIC, LOAD the PROG file, SAVE it as an ASCII file, move the program over, GET the ASCII file and STORE it back.
 
See Also: