Big-Dave
2003-08-11 04:31:54 UTC
OPEN "winn.txt" FOR INPUT AS #1
OPEN "Pepsi.txt" FOR OUTPUT AS #2
LET p$ = "Pepsi"
DO
LINE INPUT #1, a$
IF MID$(a$, 17, 5) = p$ THEN PRINT #2, a$
LOOP UNTIL (EOF(1))
'I use PB35
'How would I get a$ to print if p$ is
'Pepsi or pePsi or PEPSi...
'In other words the program works fine
' if p$ is the right case, I would like
' it to work if p$ is mixed case.
Thanks
Dave
--
\||/
_____oOO_\(..)/_OO____
__|_____|____/ \___|__gnv|__
|_____|_____|_\__/|_____|_____|
__|____David L. Bishop____|__
|___Http://www.sstar.com/washer
|_____|_____|_____|_____|
OPEN "Pepsi.txt" FOR OUTPUT AS #2
LET p$ = "Pepsi"
DO
LINE INPUT #1, a$
IF MID$(a$, 17, 5) = p$ THEN PRINT #2, a$
LOOP UNTIL (EOF(1))
'I use PB35
'How would I get a$ to print if p$ is
'Pepsi or pePsi or PEPSi...
'In other words the program works fine
' if p$ is the right case, I would like
' it to work if p$ is mixed case.
Thanks
Dave
--
\||/
_____oOO_\(..)/_OO____
__|_____|____/ \___|__gnv|__
|_____|_____|_\__/|_____|_____|
__|____David L. Bishop____|__
|___Http://www.sstar.com/washer
|_____|_____|_____|_____|