ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Example 1: Calculating the dimension of an array
  • Example 2: Resizing a dynamic array
Dimension (Example)
Example 1: Calculating the dimension of an array
The following example is used to check the size of an array. The size of the array to check is a variable.
PROCEDURE CheckArr(ArrName)
I is int
FOR I = 1 TO Dimension(ArrName)
IF ArrName[I] = 0 THEN RESULT False
END
RESULT True
Example 2: Resizing a dynamic array
This example is used to resize a dynamic array.
MyArr is array dynamic of 5 by 3 int
...
// Resize the array
Dimension(MyArr, 8, 6)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help