Skip to content
bergsma edited this page Sep 26, 2014 · 6 revisions

#short

###Convert to an character value or create an short variable.

Syntax

result = short value ;
short variable [= value] ; 

Arguments

  1. list value

A value of any type.

Return Value

ushort result
  • -32768 to 32767 : A value from -32768 to 32767.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array ushort result

  • -32768 to 32767 : A value from -32768 to 32767.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: short variable [= value] ;

  • %IDENTIFIER: 'variable' argument is not a valid identifier, literal, or reference

Description

  • None

Examples

put short ( 32767 ) ; //== 32767
put short ( 32768 ) ; //== -32768
put short ( 65535 ) ; //== -1
put short ( 65536 ) ; //== 0
put short ( 65537 ) ; //== 1

Related Links

ushort

Clone this wiki locally