Quoting James Goldbloom to Lawrence Gordon:
LG> DIM PATHNAME AS STRING * 81
LG> pathname = left$(pathname,instr(pathname, CHR$(0)) - 1)
LG> pathname = rtrim$(pathname)
JG> Just a little observation:
JG> Since there is no OS/2 version of PB as of yet (in the works, we all can
JG> hardly wait..hehe...) no DOS path can have spaces, so ya might as
JG> well just rtrim$(pathname, any chr$(0)+" ").
JG> See?
JG> If spaces are allowed in certain operating systems, different rules
JG> apply, naturally. Meaning a path is deliminated, most often.
I'm not testing for blanks in the pathname, James. I'm testing for blanks in
the pathname =variable=.
How about this:
pathname = rtrim$(left$(pathname,instr(pathname, CHR$(0)) - 1))
* WCE 2.1G1/2081 *
--- InterEcho 1.18
---------------
* Origin: Toast House * (314) 994-0312 * (1:100/560)
|