191
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
dim
r1
as
real
dim
v
as
invalid_valid
dim
r1=10E30
v=cfloat(r1)
'v will return 0- VALID
r1=r1*10E20
'at this point you will get FPERR exception if you are in the
debug mode
v=cfloat(r1)
'v will return 1- INVALID
Chr Function
Function:
Returns the string that consists of a single character with
ASCII code asciicode.
Syntax:
chr(asciicode as byte) as string
See Also:
Part
Description
asciicode
ASCII code of the character to return.
Details
It is also possible to use this function within string definitions, as shown in the
example below.
Examples
dim
x
as
byte
dim
s
as
string
x=49
s = chr(x)
' result will be '1'
s = "FooBar" + chr(13)
' would add a carriage return to the end of the
string
Date Function
Function:
Returns the date for a given day number.
Syntax:
date(daycount as word) as byte
Returns:
Date in the 1-31 range.
See Also:
,
,
Part
Description
189
211
204
211
192
195
203
203