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