Trim
Trim ( aString ) : Text
| Parámetros | Tipo | Descripción | |
|---|---|---|---|
| aString | Text | → | Texto a recortar |
| Resultado | Text | ← | Texto recortado |
Historia
| Lanzamiento | Modificaciones |
|---|---|
| 21 | Añadidos |
Descripción
The Trim command removes whitespace from both ends of the aString parameter and returns a new string, without modifying the original one. Whitespace incluyen espacios, tabulaciones, LF, CR, etc.
To return a new string with whitespace trimmed from just one end, use Trim start or Trim end.
En el parámetro aString, puede pasar cualquier expresión de tipo texto. Será dejado sin tocar por el comando.
El comando devuelve la versión recortada de la cadena aString. Si no hay espacios en blanco en ningún extremo de aString, la cadena devuelta es idéntica a la pasada como parámetro.
nota
This command is based upon the TrimString Ecmascript specification.
Ejemplo
var $input; $output : Text
$input:=" Hello World! "
$output:=Trim($input) //"Hello World!"
Ver también
Propiedades
| Número de comando | 1853 |
| Hilo seguro | ✓ |