PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment