Hello Guest it is March 29, 2024, 03:09:20 AM

Author Topic: Input box help?  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

Input box help?
« 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

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Input box help?
« Reply #1 on: September 25, 2011, 09:31:35 AM »
Add something like:

Text1 = Dlg1.TextBox1

Text1 will be the text in TextBox1
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Input box help?
« Reply #2 on: September 25, 2011, 09:48:11 AM »
Roger that!

I missed the "Dlg1" part.

Thanks!
Re: Input box help?
« Reply #3 on: September 25, 2011, 02:27:49 PM »
Worked like a charm!  Thanks again