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 a row in a two-dimensional array or in an advanced array property. The other array rows are moved accordingly.
  • swap two rows in a two-dimensional array or in an advanced array property.
Note: This function is equivalent to MoveLine.
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 - Server codePHP This function is now available for the PHP sites.
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 - Server codePHP This function is now available for the PHP sites.
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 - Server codePHP This function is now available for the PHP sites.
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 5 by 2 strings
MyArray[1,1] =  "A"
MyArray[1,2] =  "a"
MyArray[2,1] =  "B"
MyArray[2,2] =  "b"
MyArray[3,1] =  "C"
MyArray[3,2] =  "c"
MyArray[4,1] =  "D"
MyArray[4,2] =  "d"
MyArray[5,1] =  "E"
MyArray[5,2] =  "e"
// Move the row 2 to 4th position
ArrayMoveLine(MyArray, 2, 4)
// The array contains the following elements:
// "A", "a"
// "C", "c"
// "D", "d"
// "B", "b"
// "E", "e"
MyArray is array of 5 by 2 strings
MyArray[1,1] =  "A"
MyArray[1,2] =  "a"
MyArray[2,1] =  "B"
MyArray[2,2] =  "b"
MyArray[3,1] =  "C"
MyArray[3,2] =  "c"
MyArray[4,1] =  "D"
MyArray[4,2] =  "d"
MyArray[5,1] =  "E"
MyArray[5,2] =  "e"
// Swap row 2 with row 4
ArrayMoveLine(MyArray, 2, 4, amSwap)
// The array contains the following elements:
// "A", "a"
// "D", "d"
// "C", "c"
// "B", "b"
// "E", "e"
Syntax

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

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

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

ArrayMoveLine(<Array Name> , <Subscript of 1st Row> , <Subscript of 2nd Row> , <amSwap>)
<Array Name>: Array
Name of Array variable to use. This array must be a two-dimensional array.
<Subscript of 1st Row>: Integer
Subscript of the first row to swap.
<Subscript of 2nd Row>: Integer
Subscript of the second row to swap.
<amSwap>: Constant
amSwap: Constant used to swap two rows 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 10
This page is also available for…
Comments
Click [Add] to post a comment