Conversión ASCII/ANSI en cadenas

Las funciones siguientes convierten cadenas a y desde código ASCII o ANSI.

Función Asc (BASIC)

Devuelve el valor ASCII (American Standard Code for Information Interchange) del primer carácter de una expresión de cadena.

Función Chr

Devuelve el carácter que corresponde al código de carácter especificado.

Función Str

The Str function converts the contents of variables into a string. It handles numeric values, dates, strings and currency values.

Los números no negativos van precedidos de un espacio en blanco. Los números negativos van precedidos de un signo de resta.

Icono de nota

For numeric values the string returned by the Str function is locale-independent. Hence the dot is used as the decimal separator when needed.


If a string is passed as argument, it is returned without any changes.

Las fechas se convierten en cadenas dependientes de la configuración regional.

Función Val

Use the Val function to convert a string that represents a number into numeric data type.

Icono de nota

The string passed to the Val function is locale-independent. This means that commas are interpreted as thousands separators and a dot is used as the decimal separator.


Función CByte

Converts a string or a numeric expression to the Byte type.

¡Necesitamos su ayuda!

¡Necesitamos su ayuda!