HTBasic Help
×
Menu
Index

SYSTEM$

The SYSTEM$("DISP LINE") function is an HTBasic extension that returns the present contents of the display line.
 
The SYSTEM$("VERSION:HTB") function returns the HTBasic version description, for example, "Windows Release 10.0". This function can be useful for programs that run on both HP BASIC and HTBasic systems, enabling them to determine which system they are currently running on. The following example sets a variable according to the system running the program:
 
10  SUB Which_system
20    COM /Which_system/Htbasic,Hpbasic
30    IF SYSTEM$("VERSION:HTB")="0" THEN
40      Hpbasic=1
50    ELSE
60      Htbasic=1
70    END IF
80  SUBEND