Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 MAY 1998 02:26:10PM B. Cameron wrote:

a) I have an MDI frame

b) I launch an MDI child form from a men quick event…

    Parent=Get_Property(@WINDOW,"MDIFRAME")
    if len( Parent ) else Parent=@WINDOW

c) I have a button that launches a form with

    Create_Dialog(formname,Parent,"1","")

d) In formname user gets a value to pass back to (b) keeping © active

     Set_Property(Parent:".CODE","TEXT",value)

Parent never seems to be set with any value.

Am I missing something simple and if so..???…


At 04 MAY 1998 09:22AM Don Bakke wrote:

Bruce,

a) I have an MDI frame b) I launch an MDI child form from a men quick event… Parent=Get_Property(@WINDOW,"MDIFRAME") if len( Parent ) else Parent=@WINDOW c) I have a button that launches a form with Create_Dialog(formname,Parent,"1","") d) In formname user gets a value to pass back to (b) keeping © active Set_Property(Parent:".CODE","TEXT",value)

Two guesses. First, how are you determining the correct value for

Parent

in (d). You don't show us the code for that. Second, is the control

CODE

supposed to be on the MDI Frame or one of the MDI Children? It would appear from the code that you want the MDI Frame but from your previous postings on this subject I would have guessed that you actually want an MDI Child to get the value.

dbakke@srpcs.com

SRP Computer Solutions


At 04 MAY 1998 10:58AM B. Cameron wrote:

You sir are correct!

I actually realized that I missed pointing that out after my post.

Yes, I would like to pass a value back to the "CODE" control on a MDIChild form.


At 04 MAY 1998 04:59PM Don Bakke wrote:

Yes, I would like to pass a value back to the "CODE" control on a MDIChild form.

Does this mean you figured out how to make it work, or do you still need assistance here?

dbakke@srpcs.com

SRP Computer Solutions


At 04 MAY 1998 07:12PM B. Cameron wrote:

Well I would like to say I got it to work but no such luck.

I have it working for two test forms I created but still can't get the

MDICHILD window name from the RSU to set the CODE and then

send a READ.

I appreciate your responding to the post. Will keep trying things.

Bruce


At 05 MAY 1998 02:11AM Don Bakke wrote:

Bruce,

The MDIFrame will have to get the window name of the MDIChild then pass that along in the CreateParam parameter of the Create_Dialog function.

From there I would suggest setting a user-defined property of the dialog box (e.g. RSU) in the CREATE event (e.g. @CHILD) to equal the name of the MDIChild so it can be retrieved over and over again as long as the dialog box is still running.

dbakke@srpcs.com

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/e4089992be118d52852565f900654623.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1