AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de colas, pilas, listas y arrays / Funciones de arrays
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Se usa para intercambiar dos filas en un array bidimensional o en un array Property avanzado.
Observación: Esta función es equivalente a la función SwapLine.
Ejemplo
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
ArraySwapLine(MyArray, 2, 4)
// The array contains the following elements:
// "A", "a"
// "D", "d"
// "C", "c"
// "B", "b"
// "E", "e"
Sintaxis
ArraySwapLine(<WLanguage array> , <Index of 1st row> , <Index of 2nd row>)
<WLanguage array>: Array
Nombre de la variable de tipo Array a utilizar. Este array debe ser bidimensional.
<Index of 1st row>: Integro
Índice de la primera fila a intercambiar.
<Index of 2nd row>: Integro
Índice de la segunda fila a intercambiar.
Componente: wd290vm.dll
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local