OWBasic for Pocketviewer

Home INTRO Group VARIABLES Alphabetical Index

Datatype

In OWBasic the data types integer, float, string, char and boolean are used. The type of variables and functions results from the default type or an attached suffix. For variables the suffix can also be omitted after the first use.
SuffixDatatypeVariableConstantnumber range
%IntegerA%3107-32768..32767
-2147483648..2147483647
#FloatB#3.14159
$StringC$"Hello"
&CharacterC&'c'
!BooleanD!TRUE,FALSETRUE,FALSE

Integer constants can also be given as hexadecimal value with leading '0x' like 0x7ffe, 0x0D or 0x123A.
In many cases one datatype is converted into other another.


Home INTRO Group VARIABLES Alphabetical Index