PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
Returns the size of a variable (string, numeric, array, ...) or resizes a dynamic array.
WEBDEV - Browser code Returns the size of an array variable.
Versions 16 and later
WEBDEV - Browser code In browser code, you now have the ability to resize a dynamic array.
New in version 16
WEBDEV - Browser code In browser code, you now have the ability to resize a dynamic array.
WEBDEV - Browser code In browser code, you now have the ability to resize a dynamic array.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWEBDEV - Server codeReports and QueriesWindowsLinuxAndroidWindows MobileJavaPHPAjaxUser code (UMC)Stored procedures
// Resize an array (dynamic array)
MyArr is array dynamic of 5 by 3 int
...
// Resize the array
Dimension(MyArr, 8, 6)
// Resize an array (dynamic array)
MyArr is array dynamic of 5 by 3 int
...
// Resize the array
Dimension(MyArr, 8, 6)
Syntax

Retrieving the size of a variable Hide the details

<Result> = Dimension(<Variable name>)
<Result>: Integer
Requested size.
Pascal stringNumber of useful characters in the string.

Example: For a Pascal string on 10, the result will be 10.
ASCIIZ stringNumber of useful characters in the string.

Example: For an ASCIIZ string on 10, the result will be 9 because there is a binary 0 at the end.
Composite variable and structureSum of the size (in bytes) of each component.

Caution: This case does not apply to the Classes.
ArrayTotal number of elements in the array. This function is equivalent to ..Count.

Example: For an array of 3 strings, the result will be 3.
Example: For an array of 5 by 3 integers, the result will be 15 (5 * 3)
Note: To find out the size of array dimensions, use ArrayInfo.
OtherSize in bytes of the memory area corresponding to the variable. For the character strings, use Size.
<Variable name>: Character string (without quotes)
Name of the variable (any type of variable).
WEBDEV - Browser code Only Array variables can be used.
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget JavaPHPAjaxUser code (UMC)

Resizing a dynamic array of N dimensions Hide the details

Dimension(<Array name> , <Number of elements in dimension 1> [, <Number of elements in dimension 2> [... [, <Number of elements in dimension N>]]])
<Array name>: Character string (without quotes)
Name of the variable that corresponds to the dynamic array.
Note: The fixed arrays cannot be resized.
<Number of elements in dimension 1>: Integer
Number of elements in the first dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.
<Number of elements in dimension 2>: Optional integer
Number of elements in the second dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.
<Number of elements in dimension N>: Optional integer
Number of elements in the Nth dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.

Resizing a dynamic array of N dimensions Hide the details

Dimension(<Array name> , <Number of elements in dimension 1> [, <Number of elements in dimension 2> [... [, <Number of elements in dimension N>]]])
<Array name>: Character string (without quotes)
Name of the variable that corresponds to the dynamic array.
Note: The fixed arrays cannot be resized.
<Number of elements in dimension 1>: Integer
Number of elements in the first dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.
<Number of elements in dimension 2>: Optional integer
Number of elements in the second dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.
<Number of elements in dimension N>: Optional integer
Number of elements in the Nth dimension of the array.
Caution: The number of array dimensions cannot be modified, nor the type of the elements. A two-dimensional array remains a two-dimensional array.
Component : wd240vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment