` Combining field numbers in code (Douglas Johnson ) - 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: 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 April 24, 2024, 8:50 pm
This article has been viewed 35108 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: