hi guys,
here is my problem
if the user selects first from combo box i want text from a txt file to load into
textbox 1, but i cant see what i am doing wrong.
Thanks in advanced
Gobble.
here is my problem
if the user selects first from combo box i want text from a txt file to load into
textbox 1, but i cant see what i am doing wrong.
Code:
Private Sub Command1_Click() Dim what As String Dim temp As String Combo1.Text = what$ If what = "first" Then Open "c:\first.txt" For Input As #1 While Not EOF(1) Line Input #1, temp$ alltext$ = alltext$ & temp$ & vbCrLf Text1.Text = alltext$ Wend Close #1 End If End Sub Private Sub Form_Load() Combo1.AddItem "first" Combo1.AddItem "second" End Sub
Gobble.
Comment