Forgive me for I am learning...
I have a form where I want to put a button on it where the user will click it and it will open a "Dialog Box" where the user will enter a value in a Text Box and upon clicking OK I want to execute a block of code using the value entered.
Must the text box be tied to a data field?
Where do I putthe code to execute upon clicking the OK button?
Thank you for your help!
The text box does not have to be tied to a data field - it can just be a variable in the dialog box.
You have 2 options on the user clicking OK. You can put the code in the OK button trigger, or you can pass the value the user entered back to the calling program and act on it there (output parameter). The reasons for doing either one depend on exactly what you are needing the user's input for.
When setting up the text box it more less requires me to sekect a db item.
Maybe that is because of the UniFi framework I am working in.
But how would I go about setting up a Text Box to use a variable?
Dorian Chalom, Systems Analyst
Mortgage Information Technologies Department
4200 East Beltline NE
Grand Rapids, MI 49525
(616)447-3900 Ext. 43033
Impress every customer every day, every time.
If any person makes a false or misleading representation to obtain customer information, that person may have committed a federal crime, and we may report that person to the proper authorities.
When the Form is started using The ShowDjalog() method, just set the DualogResult property of the Button to a value like Ok.
The the button will close the Form.