>[...]
>if nKeycode=x
>=messagebox("xxx")
>endif
And as the help for KeyPress says, see help on INKEY() for a list of special key codes... (BTW you could also use a CASE instead of a bunch of IF's.)
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing