Click here to Skip to main content
16,006,605 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGet HDD SerialNumber in VB Script Pin
snalion16-Jan-06 9:32
snalion16-Jan-06 9:32 
GeneralRe: Get HDD SerialNumber in VB Script Pin
Guffa16-Jan-06 10:52
Guffa16-Jan-06 10:52 
AnswerRe: Get HDD SerialNumber in VB Script Pin
Dave Kreskowiak16-Jan-06 11:06
mveDave Kreskowiak16-Jan-06 11:06 
GeneralRe: Get HDD SerialNumber in VB Script Pin
snalion17-Jan-06 5:41
snalion17-Jan-06 5:41 
GeneralRe: Get HDD SerialNumber in VB Script Pin
Dave Kreskowiak17-Jan-06 11:48
mveDave Kreskowiak17-Jan-06 11:48 
QuestionUnhandeled exception error Pin
shakizil16-Jan-06 9:31
shakizil16-Jan-06 9:31 
GeneralRe: Unhandeled exception error Pin
Guffa16-Jan-06 10:55
Guffa16-Jan-06 10:55 
Question"Declaration expected" Pin
kenn_rosie16-Jan-06 7:41
kenn_rosie16-Jan-06 7:41 
In my code below,
When I go to a new line, it will not let me put the ( ) at the end of Dim ds As New DataSet
I can enter the parenthesis () but it removes them when I go to a new line

Also the dataAdapter.Fill(ds, "progs")
gives me the error
"Declaration expected"


Here is mycode so far:
**************************
**************************
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()

End Sub

'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region
Dim connectionString As String = "workstation id=Dude;packet size=4096;integrated security=SSPI;data source=Dozer;" & _
"persist security info=False;initial catalog=programmersheaven"
Dim conn As New SqlConnection(connectionString)
Dim commandString As String = "SELECT " + _
"artId, title, topic, " + _
"article.authorId as authorId, " + _
"name, lines, dateOfPublishing " + _
"FROM " + _
"article, author " + _
"WHERE " + _
"author.authorId = article.authorId"
Dim dataAdapter As New SqlDataAdapter(commandString, conn)
Dim ds As New DataSet

dataAdapter.Fill(ds, "progs")
AnswerRe: "Declaration expected" Pin
Guffa16-Jan-06 8:45
Guffa16-Jan-06 8:45 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 8:55
kenn_rosie16-Jan-06 8:55 
GeneralRe: "Declaration expected" Pin
Guffa16-Jan-06 10:56
Guffa16-Jan-06 10:56 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 12:19
kenn_rosie16-Jan-06 12:19 
AnswerRe: "Declaration expected" Pin
Guffa16-Jan-06 13:09
Guffa16-Jan-06 13:09 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 13:21
kenn_rosie16-Jan-06 13:21 
AnswerRe: "Declaration expected" Pin
Guffa19-Jan-06 21:34
Guffa19-Jan-06 21:34 
QuestionProblem running Windows Service Pin
luciodandrea16-Jan-06 6:15
luciodandrea16-Jan-06 6:15 
GeneralRe: Problem running Windows Service Pin
bskirkman16-Jan-06 11:26
bskirkman16-Jan-06 11:26 
GeneralRe: Problem running Windows Service Pin
luciodandrea17-Jan-06 0:36
luciodandrea17-Jan-06 0:36 
GeneralRe: Problem running Windows Service Pin
bskirkman17-Jan-06 0:50
bskirkman17-Jan-06 0:50 
GeneralRe: Problem running Windows Service Pin
luciodandrea17-Jan-06 0:55
luciodandrea17-Jan-06 0:55 
GeneralRe: Problem running Windows Service Pin
bskirkman17-Jan-06 1:01
bskirkman17-Jan-06 1:01 
GeneralRe: Problem running Windows Service Pin
bskirkman19-Jan-06 15:51
bskirkman19-Jan-06 15:51 
GeneralRe: Problem running Windows Service Pin
luciodandrea20-Jan-06 2:39
luciodandrea20-Jan-06 2:39 
GeneralRe: Problem running Windows Service Pin
bskirkman20-Jan-06 2:47
bskirkman20-Jan-06 2:47 
Question[Message Deleted] Pin
GitaWist16-Jan-06 2:08
GitaWist16-Jan-06 2:08 

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.