` Short file names/FNSplit (Arnor Baldvinsson ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

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, 3:53 am
This article has been viewed 35213 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: