Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease 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!
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 January 29, 2025, 9:55 pm This article has been viewed 35322 times.
|
|