Progress student requires help

Posted by LegacyUser on 02-May-2002 04:36

I am currently learning to use Progress. I am doing an assignment that requires

a button in one frame to adjust the sensitivity of a button in another frame.

Currently I am getting an error suggesting that I use an IN FRAME command,

but I have not been taught the syntax, nor can I get it right with the help.

I am sure I am close, but thought I would ask for help. Any help would be greatly

appreciated.

All Replies

Posted by LegacyUser on 22-Jun-2002 14:37

Hi Scott,

All the visual objects you put on a window become members of a field-group

(the direct parent) and are refferenced by their parent frame. In case of a

fieldgroup, e.g. a fill-in 's parent is a field-group, which is most of the

times the first-child of the parent. The frame reference however is the frame

itself.

To reference the frame you can use one of the following syntaxis:

assign when you use the directive , the current active frame is used,

unless explicitly defined elseway.

or use a frame scop block:

do with frame .

end.

In your case, the first option is preferrable, as you reference an object on

another target frame from an object on a source frame. In this case referring

the handle by itself will not do, as Progress looks for the object on the current

frame, which in your case is the frame from which you start the object trigger.

(the choose action)

Hope this helps.

By the way, it is a good practice to be become familiair with the 4gl language

itself first, before contimuiing your quest on the adm or adm2 (both smartobjects)

platforms. This will give you a more stable base to start working from. In

the end you will be ticking 4gl anyway, so why not start right there ;o).

regards,

Mark de Lange

This thread is closed