` 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  

Templates: Extracting module names into variables
1998-10-22 -- Arnor Baldvinsson
 
Newsgroups: comp.lang.clarion Hi frc, On Wed, 21 Oct 1998 22:39:00 GMT, frc@frontiernet.net wrote: >We wish to find a function or compiler pragma which can return the >module name (e.g., 'PROG003.CLW') in which it executes, something like >MSVC's __FILE__ and __LINE__ functions. > >Any help greatly appreciated! Thanks. This is very easy to do with extremely simple template code: #TEMPLATE(ModuleExtensionTemplate,'Module template') #EXTENSION(ModuleNameExtension,'Module name into variable'),PROCEDURE #LOCALDATA Loc:MET:ModuleName STRING(20) #ENDLOCALDATA #AT(%ProcedureInitialize) Loc:MET:ModuleName = '%Module' #ENDAT Tested and it works. Best regards, Arnor Baldvinsson


Today is November 21, 2024, 6:54 am
This article has been viewed 35212 times.
Google search has resulted in 4 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: