PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
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
Minimum version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment