|
|
|
|
- Reason
- Correction
- Examples
- Using an incorrect numeric value: this value does not correspond to the expected type
- Using a character string to declare the array dimension
Error 116: An array dimension must be an integer value
You are using an array: the array dimensions are invalid. An integer value must be used to define the dimension. Reminder: When declaring an array, INTEGER values must be used to define the array dimensions. Modify the type used to define the array dimensions. Use an integer. Using an incorrect numeric value: this value does not correspond to the expected type Code triggering the error MyArray is array of 5.5 int
Possible corrections To use a two-dimensional array, separate the array dimensions by a comma: replace 5.5 by 5,5. MyArray is array of 5,5 int
To use a one-dimensional array, modify the numeric value: replace 5.5 by 5. MyArray is array of 5 int
Using a character string to declare the array dimension Code triggering the error NbLines is string MyArray is array of NbLines int
Possible correction Modify the type of the NbLines variable to use an integer. NbLines is int MyArray is array of NbLines int
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|