Dialog Boxes
Forums
Hi, I am back once again. Have been working on the script and its been smooth with serveral ups and downs.
The current issue I am facing is that I cannot seem to store information within an object and I have the same error coming back to me each time.
My Dialog box's name is NewDialogX
sFieldName = listBox1$(NewDialogX.DialogBoxDropListBox2)
Error : Invalid Qualifier
If I were to remove NewDialogX the code runs but no information will be store in sFieldName.
p.s I ran a message box right after this.
Cheers!
Just an update at the moment
Just an update at the moment i managed to solve the problem relating to the DropListBox2 by inserting a new case "DropListBox2" and changing to sFieldName=listBox1$(SuppValue%).
However, I still have a problem with the input box as it constantly returns a blank when i run a message box to debug it.
Help! Cheers!
Hi Jeremy,
Hi Jeremy,
For the text box try: sNewField = NewDialogX.Field_Name
For the dropdown try: sFieldname= listBox1$(NewDialogX.DropListBox2)
Make sure your variables to store this information are global variables, they need to be defined before the main sub line.
Good luck, let me know if this helps.
Brian
Hi Jeremy,
Hi Jeremy,
The code you have with the sFieldName = listBox1$(NewDialogX.DialogBoxDropListBox2) should work, I did note that you have an extra end sub at the end of your script so that might be screwing things up. Also can you reattach the complete script as the one you have attached doesn't have the dialog so I can't see if there is anything wrong there. The dialog code is hidden in the IDEAScript editor but if you open the script in notepad or notepad ++ you will be able to see it.
Thanks
Brian