PROG Files

PROG files created by different versions of HTBasic can be exchanged only if the two computers use the same byte ordering. PROG files created by HP BASIC cannot be read or written by HTBasic. LOADing an incompatible PROG file results in error 58, "Improper File Type." ASCII and ordinary format programs can be used to exchange programs between versions with incompatible PROG files. Use GET to load an ASCII or ordinary format program file.
 
HTBasic PROG files with the wrong byte order are listed by the CAT statement with a file type of "PROGL" or "PROGM", where the trailing L or M indicates the file has LSB or MSB byte ordering. PROG files created by HP BASIC are listed with the file type "HPPRG". Compatible PROG files are listed with a file type of "PROG".