Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: dialogs input textbox problems  (Read 762 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