MTSkull
Centurion
How do I resume Execution after I fix the error?
The failure I want to fix occures at gdsData.Tables("MyTable").NewRow(). The path the user took to get here resulted in no data loaded into the Dataset, so I want to load the dummy record into the dataset to allow the add to continue.
After I load the Doc Data I want to resume where I left off in this instance.
Also is this the best way to handle the error or could there be a cleaner way to do this?
Thanks
MTS
The failure I want to fix occures at gdsData.Tables("MyTable").NewRow(). The path the user took to get here resulted in no data loaded into the Dataset, so I want to load the dummy record into the dataset to allow the add to continue.
Visual Basic:
Try
gdsData.Tables("MyTable").NewRow()
gdsData.BeginEdit()
....
Catch oException As Exception
If oException.Message = "Object reference not set to an instance of an object." then
giCurrentDocID = 1
funLoadDocData()
Resume?
Else
'something else happened so bail out
End if
End Try
After I load the Doc Data I want to resume where I left off in this instance.
Also is this the best way to handle the error or could there be a cleaner way to do this?
Thanks
MTS