[comp.lang.pascal] Just disregard me

tpehrson@javelin.sim.es.com (Tim Clinkenpeel) (04/26/91)

i fiddled, i faddled, i fuddled and then i posted a message for help.

of course after posting i decide to try ONE LAST THING, which was:

repeat while upcase(key) not in ['A','B','H','W'];

i just knew it was syntax.  however, i was once ploggin' through someone else's
code and they had done something very similar without having to quote and comma
but once (like my first example).  memory is shady about this incident, so i'd
like to know if it's possible or they had writting a custom routine.

p.s. thanks for the help if you've already responded.  don't worry, i'm sure 
     i'll have many more problems in the future.
-- 
   /=============================/ 
  / tpehrson@javelin.sim.es.com /      i will work for food 
 /=====aka: tim clinkenpeel====/ 
[DISCLAIMER: send SASE to: disclaimer, 84151-0521]

IO92203@MAINE.BITNET (Scott Maxell) (04/26/91)

In article <1991Apr26.003242.14942@javelin.sim.es.com>,
tpehrson@javelin.sim.es.com (Tim Clinkenpeel) says:
>
>i fiddled, i faddled, i fuddled and then i posted a message for help.
>
>of course after posting i decide to try ONE LAST THING, which was:
>
>repeat while upcase(key) not in ['A','B','H','W'];
>
>i just knew it was syntax.  however, i was once ploggin' through someone
>else's
>code and they had done something very similar without having to quote and
>comma
>but once (like my first example).  memory is shady about this incident, so i'd
>like to know if it's possible or they had writting a custom routine.
>
 
   What you probably saw was a set constructed as follows:
 
   LetSetType = ['A'..'Z'];
 
   Or something similar to that. This type of set will only work with
a contiguous subrange of a larger set.
 
//////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
+---------+ Scott Maxell  -- Bitnet   ->> IO92203 @ maine
|         |               -- Internet ->> IO92203 @ maine.maine.edu
|    O    |
|    |    | "What I need is a computer that will do what I want it to
+---------+ do, not what I tell it to do..."

John G. Spragge <SPRAGGEJ@QUCDN.QueensU.CA> (04/27/91)

In article <91116.084010IO92203@MAINE.BITNET>, IO92203@MAINE.BITNET (Scott
Maxell) says:
>
>In article <1991Apr26.003242.14942@javelin.sim.es.com>,
>tpehrson@javelin.sim.es.com (Tim Clinkenpeel) says:

     [ fiddle faddle deleted ]

>>repeat while upcase(key) not in ['A','B','H','W'];
>>
>>i just knew it was syntax.  however, i was once ploggin' through someone
>>else's
>>code and they had done something very similar without having to quote and
>>comma
>>but once (like my first example).  memory is shady about this incident, so
>i'd
>>like to know if it's possible or they had writting a custom routine.
>>
>
>   What you probably saw was a set constructed as follows:
>
>   LetSetType = ['A'..'Z'];
>
>   Or something similar to that.

Alternatively, our intrepid hacker may have seen:

     If POS (UpCase (ReadKbd), 'NQSR' <> 0 THEN
        CASE ...

or something similar. "POS" will produce a result similar to that
of a set manager, and in cases where you want to select from only
a small number of characters, it's more efficient.

disclaimer: Queen's University supplies me with computer services, not
            my opinions.

John G. Spragge