PGN
Program Name
This system variable returns the name of the program currently in program memory space.
Syntax
Section titled “Syntax”PGNExamples
Section titled “Examples”LET PROGRAM_NAME$ = PGNIf the name of the program in memory or currently being processed is “INDEX”, PROGRAM_NAME$ is set to equal “INDEX”.
SAVE PGN, PSZ, 1, 0is a common form of the SAVE directive which instructs Thoroughbred Basic to SAVE the current program, whose name is in the system variable PGN, whose size (in bytes) is contained in the system variable PSZ, into logical disk directory number 1, at the next available disk space large enough to hold it.
From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF