| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Functional problem |
Hi Keith, And thus Keith let it be known to Peter: 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. KB> Yup, I do know _that_ much. ;) Sorry.. I was just doing that for my benefit more than yours. :) 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.. KB> I thought I had. But it seems you're right... There is good reason for formatting, when using utils like adding breakpoints and then stepping over any offending piece of code, doing things like splitting if..then..else statements as shown makes all the difference when a programing is either stuck in a loop, or failing in the intended responces it gives. KB> ) which is quite possibly one problem. I'm not entirely sure how to KB> structure functions. Damn.. I deleted that code snippet.. sigh.. Anyway someone else has replied to your question, prolly alot better than I would have, since I was only trying to work it out to get more experience.. :) I'm a newby to pascal myself. A function is used to return one value. Regardless of the value, the name of the function is actually what is returned when called.. other than that it's like writing a procedure that only returns one value. Therefore a function will not have a var in it's header.. :) Cya, Pete ... Nothing is foolproof; fools are so ingenious. --- FMail/386 1.02+* Origin: Back from Reality. Mail. Files if you can find them! (3:635/309) SEEN-BY: 633/267 270 @PATH: 635/309 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™.