Home > lang > val 
 en fr de es it nl pl pt pt_BR mk sq ca hu tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Val
Expression = Val ( String )

Converts a string into a boolean, a number or a date, according to the string contents.

The current localization is used for converting numbers and dates. So beware that date, time, decimal and thousands separators change with the language!

The conversion algorithm is the following:

Example

PRINT Val("09/06/72 01:00")

09/06/72 01:00:00

PRINT Val("3.1415")

3.1415

PRINT Val("-25")

-25

PRINT Val("True")

True

PRINT IsNull(Val("Gambas"))

True

See also

Konverzní funkce, Localization and Translation Functions