Ok een n00b vraag van de LM
(schaam me diep)
heb de error erin gezet
ik kan dus geen VB maar dit lijkt me syntactisch wel klopppen toch?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| Private Sub Form_Load()
Dim FilePath As String
Dim Data As String
Maandag.Text = "Maandag" & vbCrLf & "test"
Dinsdag.Text = "Dinsdag"
Woensdag.Text = "Woensdag"
Donderdag.Text = "Donderdag"
Vrijdag.Text = "Vrijdag"
'FilePath = InputBox("C:\downloads\rooster.txt")
Open "C:\downloads\rooster.txt" For Input As #1
//loopt op de bovenstaande regel vast met error
//"Compile Error: Expected end of statement"
Do Until EOF(1)
'Does this loop until End Of File(EOF) for file number 1.
Line Input #1, Data
'Read one line and puts it into the varible Data.
Text1.Text = Text1.Text & vbCrLf & Data
'Adds the read line into Text1.
MsgBox EOF(1)
Loop
Close #1
End Sub |
heb de error erin gezet
ik kan dus geen VB maar dit lijkt me syntactisch wel klopppen toch?
Doet iets met Cloud (MS/IBM)