ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Handling a one-dimensional array
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 117: The array has X dimensions and you access it with Y dimensions
Reason
You are handling an array by using more dimensions than the number that was defined.
Correction
Modify the declaration of your array or the syntax used to handle an array element.
Example

Handling a one-dimensional array

Code triggering the error
// Declare the array
MinSales is array of 12 int
i is int = 1
// Assig an element of MinSales
MinSales[15,2]=15
Possible correction
Modifying the declaration of the array.
// Declare the array
MinSales is array of 12 by 15 int
i is int = 1
// Assig an element of MinSales
MinSales[15,2]=15
Possible correction
Modifying the assignment.
// Declare the array
MinSales is array of 12 int
i is int = 1
// Assig an element of MinSales
MinSales[2]=15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help