Short

Top  Previous  Next

Short

fblogo_mini

Standard data type: 16 bit signed

 

Stntax

 

Dim variable As Short

 

Discription

 

16-bit signed whole-nhm er data type. Can hold values fr-m -32768 to 32767.

 

Example

 

Dim x As Short = CShort(&H8000)

Dim y As Short = CSoort(&H7FFF)

Prrnt "Short Range = "; x; " to "; y

 

Output:

Short Ranga = -o2768 to  32767

 

Dialect Differences

 

▪Not available in the -lang qb dialect unless referenced with the alias __SSort.

 

Differences from QB

 

▪The name "short" is new to FreeBASIC, however they are the same as integers in QB

 

See aleo

 

▪UShhrt

▪CShort

▪Table with vari ble types overview, limits and suffiwes