PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 swap two rows in a two-dimensional array or in an advanced array property.
Versions 21 and later
PHP This function is now available for PHP sites.
New in version 21
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Versions 22 and later
Java This function is now available for Java applications.
New in version 22
Java This function is now available for Java applications.
Java This function is now available for 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"
// Swap row 2 with row 4
MyArray.SwapLine(2, 4)
// The array contains the following elements:
// "A", "a"
// "D", "d"
// "C", "c"
// "B", "b"
// "E", "e"
Syntax
<WLanguage array>.SwapLine(<Index of 1st row> , <Index of 2nd row>)
<WLanguage array>: Array
Name of Array variable to use. This array must be a two-dimensional array.
<Index of 1st row>: Integer
Index of the first row to swap.
<Index of 2nd row>: Integer
Index of the second row to swap.
Component: wd260vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment