DN>BM>Here's some PowerBASIC 3.x code written by James Davis that everyone
DN>BM>will find useful sooner or later. It's a function for parsing a string
DN>BM>into tokens, based on a set of delimiters you supply.
DN>BM> FUNCTION Parse$(Temp$, Delim$)
DN>Hmm, that code has a familiar look to it....
Gee, Dave, I'm sorry if I misattributed your code. It came to
me through an echo/conference/newsgroup and it had James' name
attached to it by Dave Williams, so I figured Dave knew...
I generally use a parsing function I wrote in inline asm that
doesn't destroy the original string and is much faster. However,
lots of folks prefer to have their code in straight BASIC, so
I u/l this one for them.
BTW, registered users of MAXLIB get the inline asm version as a
bonus, along with nine other asm routines (plug!).
Cheers,
Brian M.
* SLMR 2.1a * MAXLIB For PB v1.2 - Access arrays and files in EMS/XMS!
--- WILDMAIL!/WC v4.12
---------------
* Origin: Com-Dat BBS - Hillsboro, OR. HST DS (1:105/314.0)
|