How do you modify a frame in an external procedure?

Posted by Admin on 28-Jul-2009 10:45

How do you modify a frame in an external procedure?

for example, you have two .p programs.  One that calls the other but you cannot modify the source of the second.

program1.p:

     /* start of program */

     /* do something to add field to modify frame TestFrame in program2.p */

     run program2.p.    

     /* end of program */

program2.p:

     /* start of program */

     define variable site as character no-undo.

     define variable part as character no-undo.

     define variable supplier as character no-undo.

     define frame TestFrame

          site colon 10

          part colon 10

          supplier colon 10

     with size 60 by 5 side-labels.

     update

          site

          part

          supplier

     with frame TestFrame.

     /* end of program */

So how would you add a new field, such as Price to the frame and also to the update statement without modifying the program2.p?

thanks,

Kevin

All Replies

This thread is closed