Click here to Skip to main content
15,904,655 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Using CSV File As Data Reference Pin
Mycroft Holmes5-Sep-08 13:32
professionalMycroft Holmes5-Sep-08 13:32 
GeneralRe: Using CSV File As Data Reference Pin
Codemonkey855-Sep-08 19:20
Codemonkey855-Sep-08 19:20 
GeneralRe: Using CSV File As Data Reference Pin
Mycroft Holmes5-Sep-08 22:43
professionalMycroft Holmes5-Sep-08 22:43 
GeneralRe: Using CSV File As Data Reference Pin
Codemonkey856-Sep-08 1:54
Codemonkey856-Sep-08 1:54 
QuestionHi I am new user this site My subject(PHP) Pin
jitendra.rajkot4-Sep-08 3:59
jitendra.rajkot4-Sep-08 3:59 
AnswerRe: Hi I am new user this site My subject(PHP) Pin
Ashfield4-Sep-08 4:36
Ashfield4-Sep-08 4:36 
AnswerRe: Hi I am new user this site My subject(PHP) Pin
Paul Conrad4-Sep-08 11:12
professionalPaul Conrad4-Sep-08 11:12 
QuestionCalling a function gives me very unhelpful error message Pin
DerekFL4-Sep-08 3:51
DerekFL4-Sep-08 3:51 
Im trying to debug a function in VB

My code looks like this. When I call Dim Ip as Int64 = GetLocId("192.168.1.1, cn) I get error "Syntax error or access violation" Its got to be something stupid I am doing.

Namespace Ip

Public Class Class1

Public Function GetLocId(ByVal Ip As String, ByVal connection As String) As Int64
Dim cn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(connection)
Dim command As String = "EXEC [dbo].[sp_location_i]"
'Dim IpId As Int64
Dim IpLocId As Int64
cn.Open()
Dim cmd As System.Data.OleDb.OleDbCommand = cn.CreateCommand()
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = command
Dim pIp As OleDbParameter = cmd.Parameters.Add("@Ip", OleDb.OleDbType.VarChar, 15)
pIp.Value = Ip
Dim pIpLocId As OleDbParameter = cmd.Parameters.Add("@IpLocId", OleDbType.BigInt)
pIpLocId.Direction = ParameterDirection.Output
'Try
cmd.ExecuteNonQuery()
'Catch exc As OleDbException
' Console.WriteLine(exc.Message)
' IpLocId = 0 --Unknow location
'Finally
cn.Close()
'End Try

IpLocId = Convert.ToInt64(pIpLocId.Value)

Return IpLocId
End Function

End Class
End Namespace
AnswerRe: Calling a function gives me very unhelpful error message Pin
Steven J Jowett4-Sep-08 4:39
Steven J Jowett4-Sep-08 4:39 
GeneralRe: Calling a function gives me very unhelpful error message Pin
DerekFL4-Sep-08 4:47
DerekFL4-Sep-08 4:47 
QuestionHow to open ms word form vb.net to a particular bookmark? Pin
Chaitanya kumar CVSS4-Sep-08 3:29
Chaitanya kumar CVSS4-Sep-08 3:29 
AnswerRe: How to open ms word form vb.net to a particular bookmark? Pin
John Ad4-Sep-08 3:51
John Ad4-Sep-08 3:51 
QuestionHow we genrate Help File in VB6 Pin
Amit Battan Ror4-Sep-08 0:09
Amit Battan Ror4-Sep-08 0:09 
AnswerRe: How we genrate Help File in VB6 Pin
ChandraRam4-Sep-08 1:22
ChandraRam4-Sep-08 1:22 
AnswerRe: How we genrate Help File in VB6 Pin
Rajesh Anuhya4-Sep-08 1:30
professionalRajesh Anuhya4-Sep-08 1:30 
QuestionCutomize Setup VB6 Pin
Amit Battan Ror4-Sep-08 0:06
Amit Battan Ror4-Sep-08 0:06 
AnswerRe: Cutomize Setup VB6 Pin
ChandraRam4-Sep-08 1:19
ChandraRam4-Sep-08 1:19 
GeneralRe: Cutomize Setup VB6 Pin
Amit Battan Ror4-Sep-08 19:24
Amit Battan Ror4-Sep-08 19:24 
GeneralRe: Cutomize Setup VB6 Pin
ChandraRam6-Sep-08 4:43
ChandraRam6-Sep-08 4:43 
QuestionAdd handler during runtime "problem" Pin
Georg Kohler3-Sep-08 19:07
Georg Kohler3-Sep-08 19:07 
AnswerRe: Add handler during runtime "problem" Pin
Dave Kreskowiak4-Sep-08 2:14
mveDave Kreskowiak4-Sep-08 2:14 
GeneralRe: Add handler during runtime "problem" Pin
Georg Kohler4-Sep-08 10:44
Georg Kohler4-Sep-08 10:44 
Questionappending an array Pin
DFT13-Sep-08 10:48
DFT13-Sep-08 10:48 
AnswerRe: appending an array Pin
Guffa3-Sep-08 11:15
Guffa3-Sep-08 11:15 
GeneralRe: appending an array Pin
DFT13-Sep-08 11:33
DFT13-Sep-08 11:33 

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.