` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please 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!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: