home *** CD-ROM | disk | FTP | other *** search
-
- -=( Online.doc )=-
-
- The online unit handles the online messages for the three BBSses which are
- supported at the moment. It does this by checking for the BBStype in it's
- initialization part of the unit, and connecting the right procedures to
- three procedural variables. You use the variables in your program.
- (Once again, the BBStype is transparant to the program)
-
- A procedure to handle incomming online mail in a door can be something like:
-
- Procedure HandleMail(Var Foss : FossilObject);
- Begin
- If ChkForMsg
- Then Begin
- { Clear the screen and show a header }
- Foss.ClrScrF;
- Foss.WriteLnF('^4^!'+Center('-=( There''s mail for you! )=-')+'^0');
- Foss.WriteLnF('');
-
- ReadMsg(Foss); { Show the message }
-
- { Show a line and ask the user to press enter }
- Foss.WriteLnF('');
- Foss.WriteLnF('^1'+MakeString(79,'─'));
- Foss.WriteLnF('');
- Foss.PressEnter;
- End;
- End;
-
-