Progress
Programming
Handbook
Defining an Editor
The following form of the VIEW–AS phrase defines an editor:
When viewing a character string as an editor, you must specify a size for the editor in one of two ways:
You can optionally limit the number of characters that the user can enter or that can be displayed within the editor by specifying the MAX–CHARS option or setting the MAX–CHARS attribute. You can also enable horizontal scrolling (thereby disabling word-wrap) and display scroll bars.
On Windows, you can specify an editor that handles larger quantities of text than normal using the LARGE option. For more information, see the "Using an Editor" section.
The
p-edit.p
procedure displays the cat–description field of the item table as an editor that is 30 characters wide and 5 characters long:
When you run
p-edit.p
, the screen appears as follows:
![]()
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |