struntz
Nov 16th, 1999, 08:14 AM
hello . . . i here is some code for the open command for the Commondialog . . . the code works great but
'look after the code:
_________________________
Private Sub cmdOpen_click()
Wrap$ = char(13) + char(10)
Commondialog1.Filter = "Text Files (*.txt)|*.txt"
Commondialog1.ShowOpen
If commonDialog1.Filename <> "" then
Open CommonDialog1.Filname for Input As #1
Do until EOF(1)
Line Input #1, LineOfText$
AllText$ = ALLText$ & LineOfTExt$ & Wrap$
Loop
End if
Exit Sub
End Sub
I was wondering what does the Wrap$ = char(13) + char(10) Do?
i understand u Dim the Variable Wrap as string but the char(13) + char(10) do ?
thanks for your time!
------------------
Cory Sanchez
'look after the code:
_________________________
Private Sub cmdOpen_click()
Wrap$ = char(13) + char(10)
Commondialog1.Filter = "Text Files (*.txt)|*.txt"
Commondialog1.ShowOpen
If commonDialog1.Filename <> "" then
Open CommonDialog1.Filname for Input As #1
Do until EOF(1)
Line Input #1, LineOfText$
AllText$ = ALLText$ & LineOfTExt$ & Wrap$
Loop
End if
Exit Sub
End Sub
I was wondering what does the Wrap$ = char(13) + char(10) Do?
i understand u Dim the Variable Wrap as string but the char(13) + char(10) do ?
thanks for your time!
------------------
Cory Sanchez