HTBasic Help
×
Menu
Index

 Saving Programs

 

Save As Types

Besides choosing a filename in Save and Save As, you can also choose an optional file format. The default is ".bas", but there two more less used formats, plus two legacy formats:
 
(*.bas) Default Windows text format (or HP format set by CONFIGURE SAVE ASCII ON/OFF)
(*.prg) PROG is a binary format
(*.txt) Text with line numbers for documentation or reference purposes
(*.txt) Text without line numbers for easier pasting into the editor
(*.lif) LIF ASCII (HP's "Logical Interchange Format") for legacy hardware compatibility only.
(*.lhp) HP LIF ASCII for legacy only hardware compatibility
 
Note that once program code has been modified, it will be flagged with an asterisk "*" after the title in the title bar to show that the program has been modified from the original source and needs to be saved. You should also check out options in the AUTO SAVE tab in the Options menu under Run Environment.
 
Example: Saving a Program
 
 
 
Save As Dialog
 
 

Password Protect

You can also password protect a program by checking the Protect file with password check box which will bring up the Password Dialog box. Thereafter, it will not be possible to edit or view the program code without the correct password.
 

Reverting to Last Saved Version

Remember you can click Revert to Last in the File menu to open the last saved version of the program and cancel all changes that occurred since it was last saved.