Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Short file names/FNSplit 2001-12-15 -- Arnor Baldvinsson >if path is c:\temp\test.clw
>I would like only 'test.clw' returned.
If you mean the filename only, then us fnSplit from clib.clw:
Global Map:
Include('Clib.clw')
Then:
Loc:Path Cstring(256)
Loc:Drive Cstring(256)
Loc:Dir Cstring(256)
Loc:File Cstring(256)
Loc:Ext Cstring(256)
Code
X# = FnSplit(Loc:Path,Loc:Drive,Loc:Dir,Loc:File,Loc:Ext)
Works fine. As for Short path/file names, you can use
ShortPath(Loc:Path) to get that.
Today is November 21, 2024, 7:10 am This article has been viewed 35214 times.
|
|