TIP: Click on subject to list as thread! ANSI
echo: pascal
to: KIM FORWOOD
from: BRAD WILLIAMS
date: 1998-04-21 00:20:00
subject: Re: Question.

KF>Okay, going by what you are currently doing, I would suggest something
KF>like the following (in pseudo code):
 
KF>    if the correct @ symbol is found then
KF>       store all lines up to next @ symbol in memory
KF>       search each stored line for the !A marker
KF>       if found then
KF>          show that line
 
KF>Pretty basic stuff, really. I think the problem you're probably having
KF>is with the limited way that you can work with text in a file when that
KF>file is opened as a file of type text. Since there is no easy way to
KF>move backwards in a text file, the idea of storing the lines containing
KF>the answers in memory will give you easier access to them when they are
KF>needed.
 
KF>Kim Forwood
 
     Cool!  Thanks Kim! I'll definantly try that! :) (Im still kinda new
 to Pascal, just getting back into Programming after a 15 year hyatus.
 :)
 
-=- Brad
---
 # OLX 2.1 TD # Think you're confused??!! Wait until *I* explain it!!
 # PDQWK 2.5 #5
 
---
---------------
* Origin: NetComm BBS 303-730-7045 (1:104/603.0)

SOURCE: echomail via exec-pc

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™.