bounds test
BoundW[ord](n)
n: integer expression
The BoundW(n) function tests if the parameter n fits in a word. This means that when n < -32768 or n >32767 an error message is reported.
Otherwise n is returned unchanged.
Try
Print BoundW(12345)
Print BoundWord(123456)
Catch
Print "123456 exceeds capacity"
MsgBox(Err$)
EndCatch
The BoundW() function serves to find program errors by early discovery of any range violations. BoundWord() is a synonym.
{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}