Metrologic IS1000 Series Betriebsanweisung Seite 22

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 198
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 21
16
CipherLab BASIC Compiler
User's Guide
Integer Constants -
Whole numbers between - 32,768 and + 32,767. No decimal
point.
Real Number Constants -
Positive or negative real numbers, that is, numbers that contain
a decimal point, such as 5.34 or - 10.0.
Long Integer Constants -
Whole numbers between - 2,147,483,648 and + 2,147,483,647.
4.2 Variables
Variables are symbols used to represent data items, such as numerical values or character
strings that are used in a BASIC program. The value of a variable may be assigned
explicitly and can be changed during the execution of a program. Be aware that the value of
a variable is assumed to be undefined until a value is assigned to it.
4.2.1 Variable Names and Declaration Characters
The following are the rules for variable names and declaration characters:
A variable name must begin with a letter (A to Z).
The remaining characters can be letters, numbers, and/or underscores.
The last character can be one of these type declaration characters:
% integer
: 2 bytes (- 32,768 to + 32,767)
& long
: 4 bytes (- 2,147,483,648 to + 2,147,483,647)
! real number
: 4 bytes
$ string
: 250 bytes
nothing (default)
: 2 bytes (- 32,768 to + 32,767)
Only 4 types of variables are supported. The maximum number of variables is 1,000.
The variable name cannot be a BASIC reserved word.
Variable names are not case sensitive.
4.2.2 Array Variables
An array is a group or table of values referenced by the same variable name. Each element
in an array is referenced by an array variable that is subscripted with an integer or an integer
expression.
Seitenansicht 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 197 198

Kommentare zu diesen Handbüchern

Keine Kommentare