GUI ScreenIO for Windows |
Your COBOL field definitions reside in the -4 portion of the panel copybook. For an edit control, the field definition depends on the field specifications for this control. In this case, it's a numeric item, and the PICTURE clause was generated by the panel editor.
Note that it includes the VALUE clause we specified when we created this control:
01 panel-4.
|
To load data to the control for display is simple:
MOVE mydata TO MY-EDIT-CONTROL. |
Now, call GUI ScreenIO to display your panel. If the user changed the contents of MY-EDIT-CONTROL, the new data will be there when control returns from GUI ScreenIO.
You use the data just as you would data in any other field. If you want to MOVE it to a different field, do this:
MOVE MY-EDIT-CONTROL TO mydata. |
It's almost too easy...
Incidentally, if you press the right mouse button while it's over an edit control in GUI ScreenIO, you can use the standard Windows editing facilities, as shown here. This works in all edit controls, and it's automatic:
© 2000-2019 Norcom, all rights reserved |