Progress
Language Tutorial
for Character


Using the VIEW-AS Phrase

The VIEW-AS is a programming structure for associating a data widget with a variable or database field. The syntax below shows the VIEW-AS phrase at the simplest level.

SYNTAX
VIEW-AS widget-phrase 

The widget phrase consist of a keyword that identifies the widget type and the options that go with that particular type. This chapter covers each widget phrase in detail.

You can specify a VIEW-AS phrase at several points as noted in the following list:

  1. Data Dictionary
  2. DEFINE VARIABLE statement
  3. Format phrase in a DEFINE FRAME statement
  4. Format phrase on a screen I/O statement (DISPLAY, ENABLE, UPDATE, SET, and PROMPT-FOR)

A programmatic VIEW-AS phrase overrides a Data Dictionary VIEW-AS phrase. A VIEW-AS phrase that occurs later in the execution of a procedure overrides one that occurs earlier.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095