
41
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
y = x +
5
' is just like
y=x+
5
' and even this is OK:
y =
x
+
5
So, spaces, tabs and linefeeds carry no special meaning in Tibbo Basic. Use them
or lose them, as you like. The only exceptions are the
and comments.
Tibbo Basic Is Not Case Sensitive!
See:
Z = X + Y
' is just like
z = x + y
r = Q + KeWL
' even something like this is legal.
DiM
MooMoo
As
iNTeGER
' this, distatesful as it may be, is still legal. :)
Capital letters just don't matter. Really.
How to Use Double Quote Marks
Double quote marks are used for marking string literals. Simply put, a string literal
is a constant string value -- like "hello world".
s =
"I am a string literal!"
s1 = s
How to Use Single Quote Marks
These are different than the apostrophes which begin a comment. An apostrophe
looks like this ' while a single quote mark looks like this ` and is usually located on
the tilde (~) key. Single quote marks are used to define a numerical constant
which contains the value for an ASCII code. For example:
dim
b
as
byte
dim
w
as
word
b = `
q
`
' the variable b now contains the value 113, which is the
character code for q.
w = `
LM
`
' this is also legal, see below.
The notation used in the second example above actually places the ASCII value of
L into the higher byte of a
variable, and the ASCII value of M into the
lower byte of that variable. It may seem confusing at first, but it is also legal.
89
43