` 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: Deleting a file using Windows API
1999-06-19 -- Richard Brown
 
Robert Cayouette and myself, Richard Brown want to give something back to the Clarion community for all the help we have received. We needed a way to delete a text file and used this WIN API. R.E.B. !after global include !********************************* include('winequ.clw') !global data !********************************* GLO:FileName Cstring(256) !global map !********************************* OMIT('***',_WIDTH32_) Module('win16.lib') DeleteFileA(*LPCSTR),BOOL,PASCAL,RAW END *** COMPILE('***',_WIDTH32_) Module('win32.lib') DeleteFileA(*LPCSTR),BOOL,PASCAL,RAW END *** !somewhere in the program to delete a file !****************************************** !delete the entire `data.ini` file GLO:FileName='.\csidata\data.ini' X# = DeleteFileA(GLO:FileName)


Today is November 23, 2024, 2:12 am
This article has been viewed 35234 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: