## Re:"If" help

In article <32FEA1EF.6...@postoffice.worldnet.att.net> of Sun, 9 Feb

1997 22:19:59 in comp.lang.pascal.borland, "Earl F. Glynn" <EarlGlynn@po

##### Quote

stoffice.worldnet.att.net> wrote:

>If A is an integer, you can see if A is in the specified set of integers

>in a slightly more compact way, e.g.,

> if A in [3..10]

> then ...

TP7 help :

The base type of a set must be an ordinal type with

no more than 256 possible values.

The ordinal values of the upper and lower bounds of

the base type must be between 0 and 255.

(*inclusive* jrs)

Variable A can indeed be an integer, but if it does not lie in 0..255,

there will in {$R+} be a rangecheck error and otherwise its Hi byte will

AFAICS & AFAIR be ignored. It should be a byte.

To the right of "in" can be as complex as you like, provided that it is

a legitimate set expression of type "set of byte" or subset thereof.

--

John Stockton, Surrey, UK. j...@merlyn.demon.co.uk Turnpike v1.12 MIME

Web URL: http://www.merlyn.demon.co.uk/

Standard signature separator is as above, a line containing "-- " (SoRFC1036)

Standard quoter : ">" / "> " , recognised by good news readers