Gambas 2 Belgeleri
Belgeler
BENİOKU
Bileşenler
Derleme & Kurulum
Dersler
Dil Fihristi
Abs
Access
ACos
ACosh
Alloc
AND
Ang
APPEND
Aritemetik Operatörler
AS
Asc
ASin
ASinh
Asl
Asr
Atama Operatörleri
ATan
ATan2
BClr
Dizi Tanımlama
FALSE
IsVariant
KILL
Pi
TRUE
Geliştirici Belgeleri
Hata Mesajları
Kayıt
Language Overviews
Lexicon
Nasıl...
Son değişiklikler
Uygulama Deposu
ar
ca
cs
de
en
eo
es
fa
fr
hu
id
it
ja
ko
mk
nl
pl
pt
pt_BR
ru
sq
tr
vi
zh
zh_TW
CShort
Short
= CShort (
Expression
AS Variant
)
AS Short
Converts an expression into a short integer.
Since 3.18
If the conversion overflows, an error is raised, unless
System.IgnoreOverflow
is set.
Errors
Message
Description
Type mismatch (6)
Expression
cannot be converted.
Overflow (7)
The conversion leads to a number that does not fit the range of
Short
numbers.
Examples
PRINT
CShort
(
"17"
)
17
PRINT
CShort
(
100000
)
-31072
PRINT
CShort
(
TRUE
)
-1
See also
Conversion Functions