Keyword Differences

The following sections present, by keyword, various implementation differences between HTBasic and HP BASIC. Most differences are the result of hardware differences, file system differences, or extensions in HTBasic. The Reference Manual can be consulted for the full explanation of keywords mentioned here. In some cases, Windows commands that relate to BASIC commands are given. This may help you learn Windows faster by associating functionality with commands you already know.
 
Some differences exist because of enhancements TransEra has made. Many enhancements can be included in programs that run under both HP BASIC and HTBasic, if you are careful. One approach is to hide statements that will not parse under HP BASIC in OUTPUT KBD statements:
 
OUTPUT KBD;"CONFIGURE PRT TO 701"&CHR$(255)&"E";
 
Another approach is to set up a section of code that is executed only by HTBasic. When you GET the program under HP BASIC, the lines with HTBasic syntax enhancements will be commented out and ignored by HP BASIC:
 
10  INTEGER Htbasic
20  Htbasic=SYSTEM$("VERSION:HTB")<>"0"
30  IF Htbasic THEN
40  CONFIGURE DUMP TO "PCL"
50  CONFIGURE PRT TO 701
60  END IF
70  END 
 
When porting programs between HP BASIC and HTBasic, note the differences for the following keywords.