Progress
Debugger Guide


ASSIGN Command

Modifies the value of a specified variable, field, parameter, or attribute in the current procedure.

SYNTAX

ASSIGN [ VARIABLE | FIELD | PARAMETER ] name = constant 

ASSIGN handle :attribute = constant 

ASSIGN widget-name :attribute 
  [ IN FRAME frame-name ] = constant 

ASSIGN { FRAME | MENU } widget-name :attribute = constant 

ASSIGN
  { SUB-MENU | MENU-ITEM } widget-name :attribute
  [ IN { MENU | SUB-MENU } menu-name ] = constant 

PARAMETERS

[ VARIABLE | FIELD | PARAMETER ]

Specifies the type of data object you want to modify. If you do not specify this option, the Debugger attempts to resolve name for all object types and reports any ambiguity in the data panel.

name

The name of a variable, field, or parameter defined in the current procedure. If name specifies a field, it must also specify any necessary buffer qualifier that you need to uniquely identify the field.

constant

A literal value that conforms to the data type of the specified data object.

handle

The name of a variable, field, parameter, or system handle in the current procedure that contains a valid HANDLE, WIDGET-HANDLE, or COM-HANDLE value.

attribute

The name of an attribute of the specified widget or the name of a property of a specified com object.

widget-name

The name of a static widget defined in the current procedure.

[ IN FRAME frame-name ]

Specifies the name of the frame (frame-name) that contains the specified field-level widget. If you do not specify this option, the widget in the most recently defined frame is used.

{ FRAME | MENU | SUB-MENU | MENU-ITEM } widget-name

Specifies the type of widget for a frame, menu, submenu, or menu item widget (respectively) whose attribute you want to assign. If you do not specify a widget type for these widgets, the Debugger reports an error in the data panel. Note that you do not use a widget type to specify a field-level widget.

[ IN { MENU | SUB-MENU } menu-name ]

Specifies the name of the menu or submenu (menu-name) that contains the specified submenu or menu item widget. If you do not specify this option, the widget from the most recently defined menu or from the first submenu of the menu tree is used.

NOTES

SEE ALSO

DISPLAY Command, LIST BUFFERS Command, LIST PARAMETERS Command,LIST VARIABLES Command, SHOW TRANSACTION Command


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