|
-
Aug 24th, 2001, 05:34 AM
#1
Thread Starter
New Member
Problems using debugger
If you use validate event for example in the TextBox and you run debugger, VB won't let you to continue to the other textboxes if you have set some Breakpoints. No matter if the cancel argument of the event is true or false.
For example I have an TextBox array and every time you write something into one of the Textboxes the program checks if you write numbers or letters.
You have a function to do that and it's called inside the validate event. So you set a breakpoint to that function to see what is wrong with the function and when the debuggin is finished you may continue in the run mode. When you try to move cursor to the other TextBox the debugger stops you and go straight again into the validate event and it starts to go through the code inside it and the same happens again and again even if you take out the BreakPoint while running the debugger. It doesn't matter if the cancel argumet in the event is false.
Why it stops in the validate event if you dont have a breakpoint in there? It just keep you there and the code for example "Private sub Text1_Validate(Index As Integer, Cancel As Boolean)" is covered by yellow color. This is very important to me that I can continue to the other TextBox after the previous TextBox and debug the process. Help me!
-
Aug 24th, 2001, 05:45 AM
#2
Fanatic Member
I tend not to use the Validate event due to problems encountered such as yours, sorry that doesn't help does it 
Do you have to use the Validate event? Could you do all your form validation at a point when the user presses a button?
-
Aug 24th, 2001, 06:40 AM
#3
Thread Starter
New Member
to Bonker Gudd
First I tried the other way but my checking system is quite complicated so I noticed that validate system is the beste way and I really was haapy about it until a wrong kind of bug was founded and I'm not able to check it out because this stupid error in debugger.... Maby I have to do it other way or try to find some way to debug my program without the validate event...
Thank you anyway for your comments
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|