I'm a VB6 student at UOP and am working on a project. For some reason, my program isn't working, and these lines keep getting highlighted: Input #2, vartext1, vartext2, vartext3, vartext4, vartext5, vartext6, vartext7, vartext8, vartext9<br>
Write #1, Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text, Text7.Text, Text8.Text, Text9.Text<br>
Here is the entire code:<br>
<br>
Private Sub Command1_Click()<br>
Open "A:iodemo.txt" For Output As #1<br>
Write #1, Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text, Text7.Text, Text8.Text, Text9.Text<br>
Close #1<br>
End Sub<br>
<br>
Private Sub Command2_Click()<br>
Open "A:iodemo.txt" For Input As #2<br>
Input #2, vartext1, vartext2, vartext3, vartext4, vartext5, vartext6, vartext7, vartext8, vartext9<br>
Text1 = vartext1<br>
Text2 = vartext2<br>
Text3 = vartext3<br>
Text4 = vartext4<br>
Text5 = vartext5<br>
Text6 = vartext6<br>
Text7 = vartext7<br>
Text8 = vartext8<br>
Text9 = vartext9<br>
Close #2<br>
<br>
This is for a data entry program. There are 9 text boxes for information to be entered. Can anyone tell me what I've done wrong?
Write #1, Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text, Text7.Text, Text8.Text, Text9.Text<br>
Here is the entire code:<br>
<br>
Private Sub Command1_Click()<br>
Open "A:iodemo.txt" For Output As #1<br>
Write #1, Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text, Text7.Text, Text8.Text, Text9.Text<br>
Close #1<br>
End Sub<br>
<br>
Private Sub Command2_Click()<br>
Open "A:iodemo.txt" For Input As #2<br>
Input #2, vartext1, vartext2, vartext3, vartext4, vartext5, vartext6, vartext7, vartext8, vartext9<br>
Text1 = vartext1<br>
Text2 = vartext2<br>
Text3 = vartext3<br>
Text4 = vartext4<br>
Text5 = vartext5<br>
Text6 = vartext6<br>
Text7 = vartext7<br>
Text8 = vartext8<br>
Text9 = vartext9<br>
Close #2<br>
<br>
This is for a data entry program. There are 9 text boxes for information to be entered. Can anyone tell me what I've done wrong?