« Copy- (or Cut)-and-paste as much as possible; avoid re-typing code! | Main | Employ SQL-SELECTs "TO SCREEN" clause to determine if a record exists »
August 09, 2008
USE IN SELECT() to close a work area
In lieu of:
IF USED(<Work Area>)
USE IN '<Work Area>'
ENDIF
and:
USE IN IIF(USED(<Work Area>) …
employ code like the following:
USE IN SELECT('<Work Area>')
Like the first example above, this one will work regardless of whether the work area is in use or not (the second example will bomb if the specified work area is not in use).
Yours for more concise (yet still readable) code,
Art Bergquist
Posted by abergquist on August 9, 2008 | Permalink
TrackBack
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341fba8753ef00e553f527cc8834
Listed below are links to weblogs that reference USE IN SELECT(
Comments
The comments to this entry are closed.




