Home > lang > cshort 
 en fr de es it nl pl pt_BR mk sq ca hu cs 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 
CShort
Short = CShort ( Expression AS Variant ) AS Short

Converts an expression into a short integer.

Expression is first converted into an integer. Then, if this integer overflows the Short range, it is truncated.

Errors

MessageDescription
Type mismatch (6) Expression cannot be converted.

Example

PRINT CShort("17")

17

PRINT CShort(100000)

-31072

PRINT CShort(TRUE)

-1

See also

Conversion Functions