Hi,
I'm in trouble with OO4O and its OIP errors : I cannot propagate them to the calling procedure.
In my Form :
------------
MyObject.Edit
'apply modifications... blabla
MyObject.Update
Class CMyObject:
-----------------
Private rst as oradynaset
Public Sub Edit()
On error goto Err_Handle
rst.Edit
exit sub
errHandle:
MsgBox("Error"
End Sub
The problem is that if the error occurs in the class, the calling procedure of the form doesn't know that an error has occured. I tried to delete the error handler in the class and to write one in the calling procedure, so the error should be propagated to the calling procedure but it is not !
Any idea ?
Making the Edit method a function returning codes could work but I don't want to check the error codes in the calling procedure and display related message...
Thanks
Lemox
I'm in trouble with OO4O and its OIP errors : I cannot propagate them to the calling procedure.
In my Form :
------------
MyObject.Edit
'apply modifications... blabla
MyObject.Update
Class CMyObject:
-----------------
Private rst as oradynaset
Public Sub Edit()
On error goto Err_Handle
rst.Edit
exit sub
errHandle:
MsgBox("Error"
End Sub
The problem is that if the error occurs in the class, the calling procedure of the form doesn't know that an error has occured. I tried to delete the error handler in the class and to write one in the calling procedure, so the error should be propagated to the calling procedure but it is not !
Any idea ?
Making the Edit method a function returning codes could work but I don't want to check the error codes in the calling procedure and display related message...
Thanks
Lemox