TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Peter Lavender
from: Keith Bolland
date: 1996-05-01 13:28:06
subject: Functional problem

Greetings, Peter...

Replying to a message Peter wrote to Keith about Functional problem:

 PL> The function is called 'key' which is declared as a char,
 PL> you send it two value parameters, validkeys and grebblevar
 PL> of type string.

Yup, I do know _that_ much. ;)

 PL> Also, just to be picky, formatting your code makes things
 PL> alot easier to read. It takes a bit more effort, but it's
 PL> worth it in the end..

I thought I had. But it seems you're right...

 PL> It would help if you gave some idea was to what this is
 PL> supposed to do.

Basically, you call it with two parameters. 'validkeys' is a string
containing the upper cases of the keys to accept, eg.: 'ABCEDFGHIZ'.
'grebblevar' is the variable containing the read key. (ie.

grebbled := readkey;
key('YN','grebbled);

) which is quite possibly one problem. I'm not entirely sure how to
structure functions.

  -- Keith...
... And God said, "E = «mvý - Zeý/r", and there was light!
--- timEd/2-B11
* Origin: Concilium Orb (3:771/160.41)
SEEN-BY: 633/267 270
@PATH: 771/160 772/20 712/624 517 515 711/808 50/99 635/544 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.