the error messages mean nothing without the values.
1st error:
well I saidbut it would have errored anyway. Can't say anything without values - presumably it's because of the multiline thing again but I don't know. The replacing of vbCr with vbNullstring should have solved that problem. According to my testVB Code:
If m_strParts[B](0)[/B] = "Caption" Then
Test code:2nd errorVB Code:
Private Sub Form_Load() Dim s As String s = "This is" & vbCrLf & "a test" Open "C:\CRTest.txt" For Output As #1 Print #1, Replace(s, vbCr, vbNullString) Print #1, "Next Line"; Close #1 s = vbNullString Open "C:\CRTest.txt" For Input As #1 Do Until EOF(1) Line Input #1, s Debug.Print Replace(s, vbLf, vbCrLf) Loop Close #1 End Sub
Need values




Reply With Quote