Denso BHT-200QW Especificaciones Pagina 73

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 587
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 72
Chapter 5. Data Types
65
5.2 Variables
A variable is a symbolic name that refers to a unit of data storage. The contents of a variable
can change during program execution.
5.2.1 Types of Variables according to Format
Variables are classified into two types: string variables and numeric variables, each of which
is subclassified into non-array and array types.
Classification of
Variables
Example
ab3$ String
variables
Non-array
type
e$(10)
Array type
One-dimensional
gh$(1,3)
Two-dimensional
a% Numeric
variables
Integer
variables
Non-array
type
e%(10)
Array type
One-dimensional
fg%(2,3)
Two-dimensional
a,bcd
Real
variables
Non-array
type
e (10)
Array type
One-dimensional
fg (2,3)
Two-dimensional
Array variables should be declared in any of the DIM, COMMON, and DEFREG statements.
Note that the DIM statement should precede statements that will access the array variable.
BHT-BASIC can handle array variables up to two-dimensional.
The subscript range for an array variable is from 0 to 254.
[ 1 ] String Variables
A string variable should consist of 1 through 255 characters.
Non
NonNon
Non-
--
-array string variable
array string variablearray string variable
array string variables
ss
s
A non-array string variable should be formatted with an identifier followed by a dollar
sign ($) as shown below.
Syntax: identifier$
Example: a$,bcd123$
The default number of characters for a non-array string variable is 40.
Array string variables
An array string variable should be formatted with an identifier followed by a dollar sign
($) and a pair of parentheses () as shown below.
Syntax: identifier$(subscript[,subscript])
Example: a$(2),bcd123$(1,3)
Where a pair of parentheses indicates an array.
The default number of characters for an array string variable is 20.
Vista de pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 586 587

Comentarios a estos manuales

Sin comentarios