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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set the VB warnings to off

Status
Not open for further replies.

TomG1

Programmer
Apr 12, 2001
25
BE
Hi,

I don't want that the standard VB warnings are shown, how can i do that?

thx
 
Hi,

I suppose you want to shut down the warnings of errors in your VB project. You can change this in the menu Tools-->Options.
A window pops up and there on the general tab you can change the way of errors are handled.

Hope this helps
 
Tools / Options / Editor Tab / Auto Syntax Check off gets rid of MsgBox but luckily it still syntax checks and turns the code red so "Auto Syntax Check" ought to read "Pop a MsgBox and P|ss me off by making me press OK or Enter" Compare Code (Text)
Generate Sort in VB or VBScript
 
Hi guys,

thx, but I meant while the project is running.
I'm using a DBgrid and when the something is filled in wrong, for example a word where this is not allowed, I'm showing a message and as soon as the user clicks OK on my message, VB automatically shows an message of its own.

is there a way to get rid of that message?
 
Do you mean that an error message is shown?
If so, you can trap most error's by error trapping.


On Error GoTo 0
Disables any enabled error handler in the current procedure.

On Error Resume Next
Specifies that when a run-time error occurs, control goes to the statement immediately following the statement where the error occurred where execution continues. Use this form rather than On Error GoTo when accessing objects.

Hope this helps.
Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top