I'm writing a program that will allow you to sift through a text file, one line at a time, and write to a new text or .mdb file. The problem I am having is that I cannot see how to stop the loop to wait for a user command. I am sure that it is something relatively simple, but I am completely new to VB (three months or so), and my VB skills are pretty small. Here's the code that I'm using:
Private Sub cmdStart_Click()
Open SelectedFile For Input As #1
Do While Not EOF(1) ' Loop until end of file.
Input #1, txtString
txtTextString.Text = txtString
'Wait here until user presses one of a few command
'buttons to determine what to do with the string.
Loop
Close #1
End Sub
Any help would be greatly appreciated.
PSurge




Reply With Quote