SCOUG-Programming Mailing List Archives
Return to [ 21 |
March |
1999 ]
<< Previous Message <<
Content Type: text/plain
> On Sun, 21 Mar 1999 14:57:24 PST, Peter Skye wrote:
> > parse var str x':'y':'z
> >What exactly was the line you used?
Rollin White wrote:
>
> PARSE VAR Str FileName Size Date Description
Gregory W. Smith wrote:
>
> do while lines(inputfile)>0
> logline = linein(inputfile)
> parse value logline with logdate logtime logentry
> ...
> parse var logdate with yr '/' mm '/' dy
> parse var logtime with hr ':' min ':' sec
> ...
> end /* do */
Okay, found my error. I had "parse var somevar WITH dd '-' mm '-' yy"
and "parse var" isn't supposed to have a "with" (according to the online
docs only "parse value" has a "with"). My first target variable was
being set to a null string; took out the WITH and it works fine.
Rollin, thanks. Until I found my error I was wondering if your "str"
variable might be some keyword I'd missed.
Greg, thanks. Your example is pretty close to what I was writing.
- Peter Skye
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
Return to [ 21 |
March |
1999 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|