HTBasic Help
×
Menu
Index

CREATE

Because Windows supports extendible files, the number of records specified in the CREATE statement is ignored. An invalid number does not generate an error, as it will under HP BASIC. Programs that depend on errors occurring by writing past the last specified record will not function correctly, as HTBasic will simply extend the file as needed. Programs that depend on the pre-allocation of the requested records should write dummy data at the time the file is CREATEd. Under HTBasic, it is sufficient to write data in the last record.
 
Don’t confuse a LIF ASCII file, created with CREATE ASCII, with a DOS ASCII or UNIX ASCII file, created with CREATE. See CREATE in the Reference Manual for more information.
 
Use the CONFIGURE BDAT MSB FIRST statement before creating BDAT files that will be moved back to HP BASIC.