Home   Help Search Login Register  

Author Topic: dialogs input textbox problems  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
dialogs input textbox problems
« 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:
Code: [Select]
....
action = "[lbText [808,0]] exec ""Dialogs\passwordreceive.sqs""; closeDialog 2001"
....
« Last Edit: 26 Sep 2005, 13:43:24 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:dialogs input textbox problems
« Reply #1 on: 26 Sep 2005, 16:31:08 »
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
« Last Edit: 26 Sep 2005, 16:33:18 by alimag »

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:dialogs input textbox problems
« Reply #2 on: 26 Sep 2005, 23:06:29 »
Awesome, mate. Thanks.  :)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08