Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: stevehuck on September 25, 2011, 09:23:52 AM

Title: Input box help?
Post by: stevehuck on September 25, 2011, 09:23:52 AM

This is the example from the reference. I'm guessing that the text in the first text box should be returned as TextBox1 but it always seems to equal "". If i'm wrong what variable returns what is input into the text box.




Sub Main
Begin Dialog TextBoxSample 16,30,180,96,"Text Boxes and Text"
OKButton 132,20,40,14
CancelButton 132,44,40,14
Text 8,8,32,8,"Text Box:"
TextBox 8,20,100,12,.TextBox1
Text 8,44,84,8,"Multiline Text Box:"
TextBox 8,56,100,32,.TextBox2
End Dialog
Dim Dlg1 As TextBoxSample
Button = Dialog ( Dlg1 )



Text in textbox one = TextBox1   ???????????????



End Sub

Title: Re: Input box help?
Post by: ger21 on September 25, 2011, 09:31:35 AM
Add something like:

Text1 = Dlg1.TextBox1

Text1 will be the text in TextBox1
Title: Re: Input box help?
Post by: stevehuck on September 25, 2011, 09:48:11 AM
Roger that!

I missed the "Dlg1" part.

Thanks!
Title: Re: Input box help?
Post by: stevehuck on September 25, 2011, 02:27:49 PM
Worked like a charm!  Thanks again