OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tyger on 26 Sep 2005, 13:42:53
-
I need to send the string of text entered into a dialog textbox to a script to see if a 'password' is correct. I tried lbText and lbValue, neither work.
He're the code for my button:
....
action = "[lbText [808,0]] exec ""Dialogs\passwordreceive.sqs""; closeDialog 2001"
....
-
For a Text control, you should use ctrlText instead of lbText.
Also, dont forget that as soon your dialog is closed, these values are lost. You should assign them to a variable BEFORE closing the dialog.
Hope it helps
EDIT
I just saw that you called it from inside the dialog. Good. So the only problem I can see is the lbText that should be for listBox controls.
Cheers
-
Awesome, mate. Thanks. :)