PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Used to:
  • move an element in a one-dimensional WLanguage array or in an advanced array property (array of gglCalendar events, ...). The other array elements are moved accordingly.
  • swap two elements in a one-dimensional WLanguage array or in an advanced array property (array of gglCalendar events, ...).
Note: This function is equivalent to ArrayMove.
Versions 16 and later
PHP This function is now available for the PHP sites.
New in version 16
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
WEBDEV - Browser code This function is now available in browser code.
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.
WEBDEV - Browser code This function is now available in browser code.
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.
WEBDEV - Browser code This function is now available in browser code.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
MyArray is array of 6 strings
MyArray[1] =  "A"
MyArray[2] =  "B"
MyArray[3] =  "C"
MyArray[4] =  "D"
MyArray[5] =  "E"
MyArray[6] =  "F"
// Move the element 2 to 5th position
Move(MyArray, 2, 5)
// The array contains the following elements: "A", "C", "D", "E", "B", "F"
MyArray is array of 6 strings
MyArray[1] =  "A"
MyArray[2] =  "B"
MyArray[3] =  "C"
MyArray[4] =  "D"
MyArray[5] =  "E"
MyArray[6] =  "F"
// Swap the element 2 with element 5
Move(MyArray, 2, 5, amSwap)
// The array contains the following elements: "A", "E", "C", "D", "B", "F"
Syntax

Moving an element in a WLanguage array or in the advanced array property Hide the details

Move(<Array Name> , <Start Subscript> , <End Subscript> [, <amMove>])
<Array Name>: Array
Name of Array variable to use. This array must be a one-dimensional array.
<Start Subscript>: Integer
Subscript of the element to move.
<End Subscript>: Integer
New subscript of the element that was moved.
<amMove>: Optional constant
amMove: Constant used to move an element in an array.

Swapping two elements in a WLanguage array or in the advanced array property Hide the details

Move(<Array Name> , <Subscript of 1st Element> , <Subscript of 2nd Element> , <amSwap>)
<Array Name>: Array
Name of Array variable to use. This array must be a one-dimensional array.
<Subscript of 1st Element>: Integer
Subscript of the first element to swap.
<Subscript of 2nd Element>: Integer
Subscript of the second element to swap.
<amSwap>: Constant
amSwap: Constant used to swap two elements in an array.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment