PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Reason
  • Correction
  • Example
  • Handling a one-dimensional array
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 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