Posted by Beginner What's the equivalent of "On Error GoTo" im eVB? Open strTarget For Output As l_lFileNum the debugging want a End after: Open strTarget I don't know why? Kann anybody help me? ' Save variables to file Dim l_strErm As String On Error GoTo err_handler Save = True l_lFileNum = FreeFile exit_func: err_handler: End Function
![]()
on August 28, 2003, 17:14:46
212.201.0.20
Hello,
If I run the following code im eVB, I get error!
And in the line
Public Function Save(ByVal strTarget As String, ByVal strText As String) As Boolean
Dim l_lFileNum As Long
Dim l_bFileOpen As Boolean
l_bFileOpen = False
l_strErm = "Open file: " + strTarget
Open strTarget For Output As l_lFileNum
l_bFileOpen = True
l_strErm = "Write file: " + strTarget
Print #l_lFileNum, strText
On Error Resume Next
If l_bFileOpen Then
Close l_lFileNum
End If
Exit Function
Debug.Print "Error in Save " + l_strErm
Save = False
Resume exit_func
Message Thread:
![]()
« Back to thread
Evaluation Kit Support
Renesas Evaluation Boards are intended for evaluation of Renesas microprocessors only, not as development tools.