Click here to Skip to main content
15,880,651 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Debug problem Pin
~Khatri Mitesh~10-Jun-08 22:21
~Khatri Mitesh~10-Jun-08 22:21 
QuestionPlease help - newbie VBA vs .net Pin
rypstra9-Jun-08 18:07
rypstra9-Jun-08 18:07 
AnswerRe: Please help - newbie VBA vs .net Pin
Christian Graus9-Jun-08 18:12
protectorChristian Graus9-Jun-08 18:12 
QuestionDebug Problem Pin
monika_vasvani9-Jun-08 16:34
monika_vasvani9-Jun-08 16:34 
AnswerRe: Debug Problem Pin
Christian Graus9-Jun-08 16:36
protectorChristian Graus9-Jun-08 16:36 
AnswerRe: Debug Problem Pin
monika_vasvani9-Jun-08 21:17
monika_vasvani9-Jun-08 21:17 
GeneralRe: Debug Problem Pin
Christian Graus10-Jun-08 3:47
protectorChristian Graus10-Jun-08 3:47 
QuestionA Null reference exception could occur at runtime Pin
thedom29-Jun-08 14:50
thedom29-Jun-08 14:50 
OK people I am a hack programmer - think of me as the homer simpson of programming

See my code below and please help me eliminate the "Null reference exception" warning/error I get..

Thanks I know this is a easy and i am a d*mb one

Public Overloads Function LoadOrdersData() As Data.DataSet
             Dim sqlConn As New SqlConnection(ConfigurationManager.ConnectionStrings("SqlConn3").ConnectionString)
       Dim sqlDa As New SqlDataAdapter("spBackOrders", sqlConn)
       Dim sqlDs As New Data.DataSet

       sqlDa.SelectCommand.CommandType = Data.CommandType.StoredProcedure
       sqlDa.SelectCommand.Parameters.AddWithValue("@Customer", Session("CustCode"))
       sqlDa.SelectCommand.Parameters.AddWithValue("@Customer2", Session("CustCode2"))

       Try
           sqlConn.Open()
           sqlDa.Fill(sqlDs)
           sqlConn.Close()
           Return sqlDs
       Catch

       Finally
           If sqlConn.State = Data.ConnectionState.Open Then
               sqlConn.Close()
           End If
       End Try
   End Function

AnswerRe: A Null reference exception could occur at runtime Pin
Christian Graus9-Jun-08 15:03
protectorChristian Graus9-Jun-08 15:03 
AnswerRe: A Null reference exception could occur at runtime Pin
jzonthemtn9-Jun-08 15:47
jzonthemtn9-Jun-08 15:47 
GeneralRe: A Null reference exception could occur at runtime Pin
Christian Graus9-Jun-08 15:49
protectorChristian Graus9-Jun-08 15:49 
GeneralRe: A Null reference exception could occur at runtime [modified] Pin
jzonthemtn9-Jun-08 16:02
jzonthemtn9-Jun-08 16:02 
GeneralRe: A Null reference exception could occur at runtime Pin
thedom29-Jun-08 18:16
thedom29-Jun-08 18:16 
QuestionImplement Still Image, to register app to Scanner Events Pin
Matteo Rossi9-Jun-08 4:55
Matteo Rossi9-Jun-08 4:55 
Questiontell me Pin
ruthvik9-Jun-08 3:22
ruthvik9-Jun-08 3:22 
AnswerRe: tell me Pin
Christian Graus9-Jun-08 3:35
protectorChristian Graus9-Jun-08 3:35 
AnswerRe: tell me Pin
Warrick Procter9-Jun-08 17:55
Warrick Procter9-Jun-08 17:55 
Questionwhat is the code Pin
ruthvik8-Jun-08 23:11
ruthvik8-Jun-08 23:11 
AnswerRe: what is the code PinPopular
Alsvha8-Jun-08 23:14
Alsvha8-Jun-08 23:14 
AnswerRe: what is the code PinPopular
Ashfield8-Jun-08 23:22
Ashfield8-Jun-08 23:22 
AnswerRe: what is the code Pin
Christian Graus9-Jun-08 3:37
protectorChristian Graus9-Jun-08 3:37 
Question"runtime error 6149 invalid bookmark" Pin
noor siraj8-Jun-08 21:44
noor siraj8-Jun-08 21:44 
AnswerRe: "runtime error 6149 invalid bookmark" Pin
Vimalsoft(Pty) Ltd9-Jun-08 4:25
professionalVimalsoft(Pty) Ltd9-Jun-08 4:25 
QuestionCapture the image of a receiver on a vb.net program Pin
Assaf828-Jun-08 6:38
Assaf828-Jun-08 6:38 
AnswerRe: Capture the image of a receiver on a vb.net program Pin
Christian Graus9-Jun-08 3:38
protectorChristian Graus9-Jun-08 3:38 

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.