I'm writing a code to build a advance calculator, I got everything BESIDES putting a message error that says: "Cannot divide by zero." in the dividebutton I just have a really hard time coding a message error...
Thanks!
I'm writing a code to build a advance calculator, I got everything BESIDES putting a message error that says: "Cannot divide by zero." in the dividebutton I just have a really hard time coding a message error...
Thanks!
Jump to PostMsgBox("Cannot divide by zero", MsgBoxStyle.Critical)
Jump to PostOr you can test the operands before you do the divide to see if the denominator is zero.
Or you can test the operands before you do the divide to see if the denominator is zero.
I got it now, Thanks Luc001!
Hi Jockster,
Glad to help.
Mark your thread as resolved, so it can help others.
Grtz,
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.