Hello, I've posted a few questions before and have always received great answers. Thanks for that.
Here is my current question:
I am trying to create a user form with 1 text boxes, and a checkbox question with 4 possible answers. I have selected the checkbox option instead of radio buttons because the users will be able to select more than one answer.
At first, I was unable to make the form appear, however after looking in the Extra! Basic manual, I figured out how to display the user form. My problem now, is extracting the answers once the "OK" button is clicked. Here is the code I have so far for the form:
Begin Dialog YearsContract 150, 82 "I N F O"
OkButton 83, 41, 50, 14
CancelButton 83, 57, 50, 14
Text 8, 4, 140, 8, "What year(s)?"
CheckBox 20, 36, 57, 9, "2008",.Y08
CheckBox 20, 51, 57, 9, "2009",.Y09
CheckBox 20, 36, 57, 9, "2010",.Y10
CheckBox 20, 36, 57, 9, "2011",.Y11
Text 20, 36, 57, 9, "What is the contract number?"
TextBox 20, 36, 57, 9, .Contract
End Dialog
dim mydialog as YearsContract
Dialog mydialog
... so that will display the user form. I am aware that a lot of the coordinates don't make sense, I'm writing this from home.
I assume that what is after the last comma in the "CheckBox" and "TextBox" lines (ex. .Y08, .Contract) are where the answers are stored. How can I display them?
Where I work has a letter writing program which I can make macros to automate, and would like to include these answers in. How would I use them?
Thanks for any help you all can provide.
Here is my current question:
I am trying to create a user form with 1 text boxes, and a checkbox question with 4 possible answers. I have selected the checkbox option instead of radio buttons because the users will be able to select more than one answer.
At first, I was unable to make the form appear, however after looking in the Extra! Basic manual, I figured out how to display the user form. My problem now, is extracting the answers once the "OK" button is clicked. Here is the code I have so far for the form:
Begin Dialog YearsContract 150, 82 "I N F O"
OkButton 83, 41, 50, 14
CancelButton 83, 57, 50, 14
Text 8, 4, 140, 8, "What year(s)?"
CheckBox 20, 36, 57, 9, "2008",.Y08
CheckBox 20, 51, 57, 9, "2009",.Y09
CheckBox 20, 36, 57, 9, "2010",.Y10
CheckBox 20, 36, 57, 9, "2011",.Y11
Text 20, 36, 57, 9, "What is the contract number?"
TextBox 20, 36, 57, 9, .Contract
End Dialog
dim mydialog as YearsContract
Dialog mydialog
... so that will display the user form. I am aware that a lot of the coordinates don't make sense, I'm writing this from home.
I assume that what is after the last comma in the "CheckBox" and "TextBox" lines (ex. .Y08, .Contract) are where the answers are stored. How can I display them?
Where I work has a letter writing program which I can make macros to automate, and would like to include these answers in. How would I use them?
Thanks for any help you all can provide.