Re: let a popup-window do something in it's 'parent'-window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: rita tielemans (dol.fijn_at_pandora.be)
Date: 04/05/04


Date: Mon, 05 Apr 2004 22:25:17 GMT

hi again,

can you help me out a bit more?
i already found out that i can pass a variable to the modal window and read
it there

vPass="ValueToPass"
t=window.showmodaldialog("NieuweRecord.htm",vPass)

from the new window i use :
varValue=window.dialogArguments

now i need to pass an array to the new window

dim vPass(2)
vPass(1)="ValueToPass_1"
vPass(2)="ValueToPass_2"
t=window.showmodaldialog("NieuweRecord.htm",vPass)

it works... it doesn't give any error, but i can't read the
separate values vPass(1) and vPass(2) in the new form...

also, i need to pass back an array to the main form with
dim vPassBack(2)
vPassBack(1)="PassBack_1"
vPassBack(2)="PassBack_2"
window.returnvalue=vPassBack

this works without errors, but again, i can't read the values at the end...

can you help?

tnx,
Rita.



Relevant Pages

  • Re: ReadConsoleOutput changes the size of my SMALL_RECT... help!
    ... The problem is probably that ReadConsoleOutput() is expecting to ... write into a 2-dimensional array, ... This will allocate enough space to hold X-rows of Y-columns ... > window displays just fine. ...
    (microsoft.public.vstudio.general)
  • X window newbie needs sample code
    ... written a single X window graphics program of any sort. ... rectangular pixel array on the screen and internally assigns each pixel to ... an element of a memory array. ... While this might sound like a real-time ...
    (comp.os.linux.development.apps)
  • Re: Arrange All/Window sizing
    ... ReDim changes the size of an array. ... window that exists at the time the macro runs. ...
    (microsoft.public.word.docmanagement)
  • Re: BROKEN IE6 on Windows Server 2003
    ... For what it's worth, I needed to popup a window, submit a form to my ... opener window could reference the array. ... window because its only reason for being was the trip to the database. ...
    (microsoft.public.windows.server.general)
  • Re: How to response to the event of dynamically-created and indefinite-number control
    ... One should be very careful with dynamic array of CWndobjects. ... > Now the trick is to keep the control ranges separate. ... > the GetDlgCtrlID of the static window, after which the static window can ... user click the checkbox in one window, whether the checkbox in other window ...
    (microsoft.public.vc.mfc)