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
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Converts a one- or two-dimensional array to a character string.
Note: This function can only be used on WLanguage arrays.
Ejemplo
// One-dimensional array
sMyValues is string 
// Initial array
MyArray is array of 3 strings
MyArray[1] = "A"
MyArray[2] = "B"
MyArray[3] = "C"
sMyValues = ArrayToString(MyArray)
// sMesValeurs contains: "A" + CR + "B" + CR + "C"
// Two-dimensional array
sMyValues is string 
// Initial array
MyArray is array of 2 by 3 strings
MyArray[1,1] = "A"; MyArray[1,2] = "B"
MyArray[1,3] = "C"; MyArray[2,1] = "D"
MyArray[2,2] = "E"; MyArray[2,3] = "F"

sMyValues = ArrayToString(MyArray)
// sMesValues contains: "A" + TAB + "B" + TAB + "C" +RC+ "D" + TAB + "E" + TAB + "F"
Sintaxis

Converting a one-dimensional array Ocultar los detalles

<Result> = ArrayToString(<WLanguage array> [, <Element separator>])
<Result>: Character string
Character string containing the different values found in the array. The array elements are converted into character strings and added to the string while being separated by the <Element separator>.
<WLanguage array>: Array variable
Name of the one-dimensional array that must be converted into a character string. This array must be created.
<Element separator>: Optional character string
Separator used to separate the values of the different array elements. The element separator used by default is the CR character (Carriage Return).

Converting a two-dimensional array Ocultar los detalles

<Result> = ArrayToString(<WLanguage array> [, <Row separator> [, <Column separator>]])
<Result>: Character string
Character string containing the different values found in the array. The array elements are converted into character strings and added to the string. The rows are separated by <Row separator> and the columns are separated by <Column separator>.
<WLanguage array>: Array variable
Name of the two-dimensional array that must be converted into a character string. This array must be created.
<Row separator>: Optional character string
Separator used to separate the values of the different rows. The row separator used by default is the CR character (Carriage Return).
<Column separator>: Optional character string
Separator used to separate the values of different columns. The column separator used by default is TAB.
Observaciones
  • The structure arrays supported are the one-dimensional arrays only. In this case, the order of parameters defines the order in the result string.
  • The arrays containing UNICODE strings or variants are not supported.
  • For the Duration type, the value is converted into thousands of a second.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

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