[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Parsing of GetPath
- Subject: Parsing of GetPath
- From: Patricia M Godfrey pmgodfrey@xxxxxxxx
- Date: Fri, 24 Sep 2004 18:49:09 -0400
It seems that I CANNOT get the hang of SX vs. SV versus VA versus PV. I'm
trying to split fully qualified pathnames into constitutent parts, and
was delighted to find the GetPath routine in U2. But then, having gotten
the file name (without the path), I then wanted to get just the filename,
without the extension. That should be doable with XS, but when I run the
following code (this isn't the whole program; it's a routine I'm testing
apart from the rest), I get "function requires ID and expression," and
the resulting temp.txt file displays SG 50 and 51 correctly at first
("path is d:\folder\subfold
filename is filename.ext")
but then the last line reads just
"Newfile is .ps"
What am I doing wrong? I've tried SX01 and then XS VA01, etc., but
that doesn't work either.
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX50,{<}VA$FP{>}{>}[JM_]2.GetPath[Q2_][BX_]ne temp.txt[Q2_
][GT_][cr|lf]path is {<}PV50{>}[cr|lf]filename is {<}PV51{>}[
cr|lf]{<}SX02,"."{>}{<}XS{<}VA51{>},{<}PV02{>},{<}PV03{>},{<}
PV04{>},{<}PV05{>}{>}[cr|lf]Newfile is {<}PV03{>}.ps
-nd
XPLeNCODE
Patricia