Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
BASIC Intrinsic Functions
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
CodeView expressions cannot contain BASIC procedures from the program
being debugged. CodeView expressions can contain a limited number of
BASIC intrinsic functions, as shown in the following table:
Function Returns/Performs Argument type Return type
────────────────────────────────────────────────────────────────────
ASC ASCII value of STRING INTEGER
first character
CINT Data type conversion Numeric expression INTEGER
CLNG Data type conversion Numeric expression LONG
CSNG Data type conversion Numeric expression SINGLE
CDBL Data type conversion Numeric expression DOUBLE
CCUR Data type conversion Numeric expression CURRENCY
CVI Data type conversion 2-byte STRING INTEGER
CVL Data type conversion 4-byte STRING LONG
CVS Data type conversion 4-byte STRING SINGLE
CVD Data type conversion 8-byte STRING DOUBLE
CVC Data type conversion 8-byte STRING CURRENCY
FIX Conversion, with Numeric expression INTEGER
truncation
INT Conversion, with Numeric expression INTEGER
truncation
VAL Numeric value of STRING INTEGER, LONG,
string SINGLE, DOUBLE,
CURRENCY
SADD Offset portion of STRING INTEGER
address of string
data
SSEG Segment portion of STRING INTEGER
address of string
data
SSEGADD Segment and offset STRING LONG
of string data
VARPTR Offset portion of Variable name INTEGER
address of variable
VARSEG Segment portion of Variable name INTEGER
address of variable
VARPTRSEG Segment and offset Variable name LONG
of variable
LBOUND Lower bound of an Array name, dimension INTEGER
array dimension
UBOUND Highest bound of an Array name, dimension INTEGER
array dimension
-♦-