Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Error goto no responde 1

Status
Not open for further replies.

poltergeist

Programmer
Jul 16, 2003
173
CL
I've this little function and the trouble is that in one of my desktop I can see my Errormessage in the other I'll have the Visualbasic own Errormessage

Function ErrorText() As Double
dim result as Double
On Error GoTo handler
Result = 8 / 0
Exit Function
handler:
MsgBox "Division 0 isn't allowed", , vbOKOnly
Resume Next
End Function


peterguhl@yahoo.de
 
Ok that was wrong when i translated the function but my problem is that never will show the messagebox.

peterguhl@yahoo.de
 
The code worked fine for me using vb5. I put the function in the general area and called it during a command click event.
 
You might try, from the IDE, going to Tools->Options, and on the General Tab, choose the "Break on Unhandled Errors" option in the Error Handling frame.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks CajunCenturion

That was the reason I was looking for some days Your Star

peterguhl@yahoo.de
 
You're quite welcome poltergeist.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top