WINDEV, WEBDEV AND WINDEV MOBILEONLINE HELPVersion: 1516171819202122232425
 Home | Sign in | English
 WINDEV WEBDEV WINDEV Mobile Others MoveLine (Function) In french: DéplaceLigne Allows you to:move a row in a two-dimensional WLanguage array or in an advanced array property. The other array rows are moved accordingly.swap two rows in a two-dimensional WLanguage array or in an advanced array property.Note: This function is equivalent to ArrayMoveLine.Versions 18 and later This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications.New in version 18 This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications. This function is now available in Windows Store apps mode. This function is now available for iPhone/iPad applications.Versions 21 and later This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.New in version 21 This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode. This function is now available in Apple Watch mode. This function is now available in Universal Windows 10 App mode.Versions 22 and later This function is now available in Android Widget mode. This function is now available for Android applications.New in version 22 This function is now available in Android Widget mode. This function is now available for Android applications. This function is now available in Android Widget mode. This function is now available for Android applications.Example MyArray is array of 5 by 2 stringsMyArray[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 positionMoveLine(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 stringsMyArray[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 MoveLine(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 MoveLine( , , [, ]) : ArrayName of Array variable to use. This array must be a two-dimensional array. : IntegerSubscript of the row to move. : IntegerNew subscript of row that was moved. : Optional constantamMove: Constant used to move a row in an array. Swapping two rows in a WLanguage array or in an advanced array property MoveLine( , , , ) : ArrayName of Array variable to use. This array must be a two-dimensional array. : IntegerSubscript of the first row to swap. : IntegerSubscript of the second row to swap. : ConstantamSwap: Constant used to swap two rows in an array. Component : wd250vm.dll Minimum version required Version 14 This page is also available for…
 Comments
 Click [Add] to post a comment
 Registered trademarks. Copyright ©2009-2020 PC SOFT. All rights reservedThis website has been developed with WEBDEV and HFSQLWEBDEV, WINDEV Mobile and WINDEV programming