` 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: Combining field numbers in code
1998-08-07 -- Douglas Johnson
 
I recently downloaded some code which contained MANY LONG statements like the following: CASE ACCEPTED() OF ?Field1 MyString = ?Field1{PROP:Text} OF ?Field2 MyString = ?Field2{PROP:Text} OF ?Field3 MyString = ?Field2{PROP:Text} OF ... END After sorting through all of this, it seemed it might be helpful to offer the following tip as a short alternative: CASE ACCEPTED() OF ?Field1 TO ?FieldX MyString = ACCEPTED(){PROP:Text} END In other words, functions returning a field number can be combined with a field specific property statement.


Today is May 4, 2024, 12:44 am
This article has been viewed 35109 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: