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

Visual Basic

 
GeneralRe: self talking hangman vb console game tutorial Pin
StarTrekCafe30-Jul-19 17:56
StarTrekCafe30-Jul-19 17:56 
GeneralRe: self talking hangman vb console game tutorial Pin
Dave Kreskowiak31-Jul-19 5:37
mveDave Kreskowiak31-Jul-19 5:37 
GeneralRe: self talking hangman vb console game tutorial Pin
StarTrekCafe31-Jul-19 14:17
StarTrekCafe31-Jul-19 14:17 
GeneralRe: self talking hangman vb console game tutorial Pin
Dave Kreskowiak31-Jul-19 16:13
mveDave Kreskowiak31-Jul-19 16:13 
GeneralRe: self talking hangman vb console game tutorial Pin
StarTrekCafe31-Jul-19 16:19
StarTrekCafe31-Jul-19 16:19 
GeneralRe: self talking hangman vb console game tutorial Pin
Dave Kreskowiak31-Jul-19 16:23
mveDave Kreskowiak31-Jul-19 16:23 
AnswerRe: self talking hangman vb console game tutorial Pin
ZurdoDev6-Aug-19 10:06
professionalZurdoDev6-Aug-19 10:06 
QuestionMatlab DLL Function is returning nothing !! Pin
Member 1454417528-Jul-19 22:43
Member 1454417528-Jul-19 22:43 
QuestionRe: Matlab DLL Function is returning nothing !! Pin
Richard MacCutchan29-Jul-19 4:12
mveRichard MacCutchan29-Jul-19 4:12 
QuestionVB.NET x Google Maps - best routes Pin
Member 1454069824-Jul-19 18:02
Member 1454069824-Jul-19 18:02 
AnswerRe: VB.NET x Google Maps - best routes Pin
Mycroft Holmes24-Jul-19 21:06
professionalMycroft Holmes24-Jul-19 21:06 
AnswerRe: VB.NET x Google Maps - best routes Pin
Richard MacCutchan24-Jul-19 21:12
mveRichard MacCutchan24-Jul-19 21:12 
QuestionOutOfMemoryException in VB.Net Pin
DTGeek19-Jul-19 6:48
DTGeek19-Jul-19 6:48 
AnswerRe: OutOfMemoryException in VB.Net Pin
Gerry Schmitz19-Jul-19 12:06
mveGerry Schmitz19-Jul-19 12:06 
GeneralRe: OutOfMemoryException in VB.Net Pin
DTGeek23-Jul-19 5:14
DTGeek23-Jul-19 5:14 
GeneralRe: OutOfMemoryException in VB.Net Pin
DTGeek30-Jul-19 4:59
DTGeek30-Jul-19 4:59 
I'm trying to read an xml file one line at a time to update someone database with our prices tell me am I on the right path:

Private Sub TestReader()
        Dim reader As XmlReader = XmlReader.Create(String.Format("{0}\Items.xml", My.Computer.FileSystem.SpecialDirectories.Temp))
        reader.MoveToContent()

        While reader.Read
            If reader.NodeType = XmlNodeType.Element And reader.Name = "Items" Then
                Dim row As DataSetPricing.ItemsRow = New DataSetPricing.ItemsDataTable().NewItemsRow
                While reader.Read
                    If reader.NodeType = XmlNodeType.Element Then
                        Dim element As XElement = XElement.ReadFrom(reader)
                        Select Case reader.Name
                            Case "PK_ItemID"
                                row.PK_ItemID = element.Value
                                Exit Select
                            Case "ParentID"
                                row.ParentID = element.Value
                                Exit Select
                            Case "ERINumber"
                                row.ERINumber = element.Value
                                Exit Select
                            Case "Comparative"
                                row.Comparative = element.Value
                                Exit Select
                            Case "AlphaIndex"
                                row.AlphaIndex = element.Value
                                Exit Select
                            Case "Description"
                                row.Description = element.Value
                                Exit Select
                            Case "ImKing"
                                row.ImKing = element.Value
                                Exit Select
                            Case "FK_ManufacturerID"
                                row.PK_ItemID = element.Value
                                Exit Select
                            Case "FK_StatusID"
                                row.FK_StatusID = element.Value
                                Exit Select
                            Case "FK_LevelTypeID"
                                row.FK_LevelTypeID = element.Value
                                Exit Select
                            Case "FK_WorkGroupID"
                                row.FK_WorkgroupID = element.Value
                                Exit Select
                            Case "FK_CommodityID"
                                row.FK_CommodityID = element.Value
                                Exit Select
                            Case "UPC"
                                row.CatalogNumber = element.Value
                                Exit Select
                            Case "FK_UOMID"
                                row.FK_UOMID = element.Value
                                Exit Select
                            Case "Retail"
                                row.Retail = element.Value
                                Exit Select
                            Case "Cost"
                                row.Cost = element.Value
                                Exit Select
                            Case "Labor"
                                row.Labor = element.Value
                                Exit Select
                            Case "Multiplier"
                                row.Multiplier = element.Value
                                Exit Select
                            Case "ReportGroup"
                                row.ReportGroup = element.Value
                                Exit Select
                            Case "DateEffective"
                                row.DateEffective = element.Value
                                Exit Select
                            Case "ImageURL"
                                row.ImageURL = element.Value.ToString
                                Exit Select
                            Case "CatalogPageURL"
                                row.CatalogPageURL = element.Value.ToString
                                Exit Select
                            Case "LastUpdateDateTime"
                                row.LastUpdateDateTime = element.Value
                                Exit Select
                            Case "RowID"
                                row.RowID = element.Value
                                Exit Select
                        End Select
                    End If
                End While
            End If
        End While
    End Sub

Questioncontextmenu when 2 files are selected Pin
JR21218-Jul-19 1:58
JR21218-Jul-19 1:58 
AnswerRe: contextmenu when 2 files are selected Pin
Eddy Vluggen23-Jul-19 0:35
professionalEddy Vluggen23-Jul-19 0:35 
GeneralRe: contextmenu when 2 files are selected Pin
JR21223-Jul-19 4:30
JR21223-Jul-19 4:30 
QuestionProblem with treeview drag and drop Pin
mo149212-Jul-19 9:02
mo149212-Jul-19 9:02 
QuestionHow to commnuicated between VBS and C# Pin
Member 145249558-Jul-19 21:48
Member 145249558-Jul-19 21:48 
GeneralRe: How to commnuicated between VBS and C# Pin
Ralf Meier8-Jul-19 23:56
mveRalf Meier8-Jul-19 23:56 
AnswerRe: How to commnuicated between VBS and C# Pin
Dave Kreskowiak9-Jul-19 6:19
mveDave Kreskowiak9-Jul-19 6:19 
GeneralRe: How to commnuicated between VBS and C# Pin
Member 145249559-Jul-19 15:20
Member 145249559-Jul-19 15:20 
GeneralRe: How to commnuicated between VBS and C# Pin
Dave Kreskowiak10-Jul-19 5:04
mveDave Kreskowiak10-Jul-19 5:04 

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.