[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: XPL & directories???
- Subject: Re: XPL & directories???
- From: TBaehr TBaehr@xxxxxxxx
- Date: Sun, 14 Dec 1997 22:19:59 EST
Myron wants to know how to get filenames from directory list.
The easiest way is va$dr, but that will give path and extension, too. If the
DOS program can handle that, you're OK.
If you're running XY4 with menus, save the $dr value to S/G 40 and JM to
GrabPath. The exit value, 44, is the file without the path (If I'm reading the
code right). Then put that value into S/G 40 again and JM to GrabExt. The exit
value 42 should contain just the filename root with no extension. Here's one
scrap of code:
≪sx40,≪va$dr≫≫JM (GrabPath)≪sx40,≪is44≫≫JM (GrabExt)
The result of this scrap in S/G 42 is the raw filename.
Example: C:\path1\path2\filename.ext becomes filename.
You can, of course, appropriate the code in these 5-frames; they don't
reference any other frames.
Hope this helped.
Tim Baehr
tbaehr@xxxxxxxx