Denso BHT-200QW Spécifications Page 197

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 587
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 196
Chapter 14. Statement Reference
189
____________________________________________________________________
DIMension Memory control statement
DIM
Declares and dimensions arrays; also declares the string length for a string variable.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
DIM arraydeclaration[,arraydeclaration...]
Parameter:
Parameter:Parameter:
Parameter:
arraydeclaration
numericvariable (subscript)
DIM n1%(12)
DIM n2(5,6)
stringvariable (subscript)[[stringlength]]
DIM s1$(2)
DIM s2$(2,6)
DIM s3$(4)[16]
DIM s4$(5,3)[30]
subscript
For one-dimensional: integerexpression
For two-dimensional: integerexpression,
integerexpression
Where integerexpression is a numeric expression which returns a value
from 0 to 254.
stringlength
An integer constant that has a value from 1 to 255 which indicates the number
of characters.
Description:
Description:Description:
Description:
DIM declares array variables and dimensions the arrays that a program will utilize.
• A DIM statement can appear anywhere before the first use of the array in a source
program. However, when possible, you should place all your DIM statements together
near the beginning of the program and should not place them in the program execution
loops in order to prevent errors.
Up to 2-dimensional array variables can be declared.
Vue de la page 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 586 587

Commentaires sur ces manuels

Pas de commentaire