I was converting the PB/CC PBCGI.INC file over so it can be used in PB/DOS. While doing this, I came across a few things that I can't figure out what they do. PARSE$, and PARSECOUNT. It looks like PARSECOUNT has the same function as TALLY.
would the following code give me something equivalent to PARSE$ ?
'inSt$ is the main string.
' spChar$ is the splitter character
FUNCTION PARSE$(inSt$,spChar$)
pstr$=extract$(inSt$,spChar$)
inSt$=right$(inSt$,(LEN(inSt$)-LEN(pstr$+"&")))
PARSE$=pstr$
END FUNCTION
This is mr blindly walking into this. I don't know what the actual PARSE$ function does, so if I'm wrong, please correct me.
Thanks,
Amos
------------------
Amos
would the following code give me something equivalent to PARSE$ ?
'inSt$ is the main string.
' spChar$ is the splitter character
FUNCTION PARSE$(inSt$,spChar$)
pstr$=extract$(inSt$,spChar$)
inSt$=right$(inSt$,(LEN(inSt$)-LEN(pstr$+"&")))
PARSE$=pstr$
END FUNCTION
This is mr blindly walking into this. I don't know what the actual PARSE$ function does, so if I'm wrong, please correct me.
Thanks,
Amos
------------------
Amos
Comment