Progress
Programming
Handbook
Using the VIEW–AS Phrase
You specify a representation for a database field or variable with the VIEW–AS phrase:
- Database fields — You use the VIEW–AS phrase as a modifier to a screen I/O statement, such as an UPDATE or DISPLAY.
- Variables — You can use the VIEW–AS phrase as a modifier to a screen I/O statement, or you can use it as a modifier to the DEFINE VARIABLE statement. In many cases, it is preferable to use the VIEW–AS phrase when defining the variable; this means that code that manipulates the variable, such as an UPDATE statement, does not have to specify the representation. It also allows you to isolate your user-interface code, which can make your applications easier to port to different user-interface environments.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |