ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • 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
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Error 116: An array dimension must be an integer value
Reason
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.
Correction
Modify the type used to define the array dimensions. Use an integer.
Examples

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…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help