Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:13:13 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Input box help?
Pages: 1   Go Down
Print
Author Topic: Input box help?  (Read 270 times)
0 Members and 1 Guest are viewing this topic.
stevehuck
Active Member

Offline Offline

Posts: 275


View Profile
« on: September 25, 2011, 08: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   HuhHuhHuhHuhHuh



End Sub

Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,619



View Profile WWW
« Reply #1 on: September 25, 2011, 08:31:35 AM »

Add something like:

Text1 = Dlg1.TextBox1

Text1 will be the text in TextBox1
Logged

stevehuck
Active Member

Offline Offline

Posts: 275


View Profile
« Reply #2 on: September 25, 2011, 08:48:11 AM »

Roger that!

I missed the "Dlg1" part.

Thanks!
Logged
stevehuck
Active Member

Offline Offline

Posts: 275


View Profile
« Reply #3 on: September 25, 2011, 01:27:49 PM »

Worked like a charm!  Thanks again
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!