Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
JokeRe: how to view obj with direct x 8 vb6 Pin
Mycroft Holmes28-Apr-22 11:49
professionalMycroft Holmes28-Apr-22 11:49 
AnswerRe: how to view obj with direct x 8 vb6 Pin
CHill606-May-22 5:10
mveCHill606-May-22 5:10 
QuestionOperator '=' is not defined for type for 'DBNull' and string '1' Pin
LohJane20-Apr-22 23:13
LohJane20-Apr-22 23:13 
SuggestionRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
Richard Deeming20-Apr-22 23:32
mveRichard Deeming20-Apr-22 23:32 
QuestionRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
CHill6021-Apr-22 5:53
mveCHill6021-Apr-22 5:53 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
Raphael Adeniji21-Apr-22 6:11
Raphael Adeniji21-Apr-22 6:11 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
Richard MacCutchan21-Apr-22 23:22
mveRichard MacCutchan21-Apr-22 23:22 
AnswerRe: Operator '=' is not defined for type for 'DBNull' and string '1' Pin
CMYork0125-Apr-22 4:57
CMYork0125-Apr-22 4:57 
I agree need to know what line is throwing the error.
Can you see what ex.StackTrace shows in your Catch ex as Exception block?

Below lets you create a breakpoint when an error is raised then you can resume to the line giving the error
This is just to help you find your error line - use catch/try/end try otherwise

To debug remove your try, catch, end try then...

VB
On Error GoTo err_handler
'    <<Your code goes here>>

' at end of function/sub add...
quit_proc:
    Exit Function '(or sub?)

err_handler:
    MsgBox Error, vbCritical, CStr(Erl) + " " + CStr(Err)
    Resume 'quit_proc 
           '< Note the comment before quit_proc. Put breakpoint at Resume line (F9) then when hit, step (F8) through to the line giving the error
'Remove the 'comment before quit_proc when not debugging or else you will get in a loop if any error is raised or (better) revert to your Try, Catch, End Try construct

QuestionQuestion about creating dir Pin
User2202219-Apr-22 9:54
User2202219-Apr-22 9:54 
AnswerRe: Question about creating dir Pin
Dave Kreskowiak19-Apr-22 11:21
mveDave Kreskowiak19-Apr-22 11:21 
QuestionApp.Path & "\" & App.EXEName alternative Pin
Everdome io5-Apr-22 2:08
Everdome io5-Apr-22 2:08 
AnswerRe: App.Path & "\" & App.EXEName alternative Pin
Richard Deeming5-Apr-22 2:25
mveRichard Deeming5-Apr-22 2:25 
GeneralRe: App.Path & "\" & App.EXEName alternative Pin
Everdome io5-Apr-22 5:04
Everdome io5-Apr-22 5:04 
AnswerRe: App.Path & "\" & App.EXEName alternative Pin
Raphael Adeniji17-Apr-22 10:31
Raphael Adeniji17-Apr-22 10:31 
Questionhow to add dynamic image in crystal report from vb6 Pin
Datta Bhor27-Mar-22 7:59
Datta Bhor27-Mar-22 7:59 
AnswerRe: how to add dynamic image in crystal report from vb6 Pin
Raphael Adeniji18-Apr-22 8:40
Raphael Adeniji18-Apr-22 8:40 
QuestionGoogle Drive API in VB.net check if file is opened Pin
Goldrake_Act23-Mar-22 21:47
Goldrake_Act23-Mar-22 21:47 
Questionsearch for specific word in a text file Pin
Benjamindh19-Mar-22 18:09
Benjamindh19-Mar-22 18:09 
AnswerRe: search for specific word in a text file Pin
Richard MacCutchan19-Mar-22 22:17
mveRichard MacCutchan19-Mar-22 22:17 
AnswerRe: search for specific word in a text file Pin
Raphael Adeniji20-Apr-22 5:35
Raphael Adeniji20-Apr-22 5:35 
GeneralRe: search for specific word in a text file Pin
Richard Deeming20-Apr-22 6:11
mveRichard Deeming20-Apr-22 6:11 
GeneralRe: search for specific word in a text file Pin
Raphael Adeniji21-Apr-22 5:53
Raphael Adeniji21-Apr-22 5:53 
GeneralRe: search for specific word in a text file Pin
Richard Deeming21-Apr-22 6:53
mveRichard Deeming21-Apr-22 6:53 
GeneralRe: search for specific word in a text file Pin
Raphael Adeniji21-Apr-22 7:20
Raphael Adeniji21-Apr-22 7:20 
GeneralRe: search for specific word in a text file Pin
Richard Deeming21-Apr-22 21:20
mveRichard Deeming21-Apr-22 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.