short

Syntax short (value)

Params value is the object whose datatype you wish to coerce to be a short integer.

Action Coerces the datatype of value to be short if possible.

Returns The resulting short value if coercion is successful; otherwise an error

Examples short ("3")

   » 3

short (100000)

   » false

The second example generated an error, since the number is too large.

Errors If value is a number outside the range -32768-32767, or otherwise can't be coerced to a number in that range, an error will be generated.

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

This is most useful in dealing with Macintosh-specific IAC situations where a short (2-byte integer) value is required by one of the programs involved in the IAC process.

Discuss