View Full Version : passing array to new popup dialog?
Gibbz 01-15-2006, 03:48 AM I want a new dialog box to pop up and display some information from my main dialog. How do i go about passing information to my new dialog from the old?
Thanks
|
|
antonv
01-15-2006, 05:05 AM
You need to reference the other rollout like in the following example test1.txt_Source.text, this is one way, and another would be to just pass it to a global variable and read it in the second dialog.
Here is the code:
rollout test1 "Source"
(
edittext txt_Source "Enter Source text:" labelontop:true
button btn_OpenTest2 "Open Destination dialog"
on btn_OpenTest2 pressed do createdialog test2 180 80
)
rollout test2 "Destination"
(
edittext txt_Destination "Here is your text:" labelontop:true
on test2 open do txt_Destination.text = test1.txt_Source.text
)
createdialog test1 200 100
CGTalk Moderation
01-15-2006, 05:05 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.