Click here to Skip to main content
15,910,210 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSource Convert VB.Net to C# Pin
Baloch_khan6-Aug-19 8:59
Baloch_khan6-Aug-19 8:59 
AnswerRe: Source Convert VB.Net to C# Pin
ZurdoDev6-Aug-19 10:03
professionalZurdoDev6-Aug-19 10:03 
GeneralRe: Source Convert VB.Net to C# Pin
Eddy Vluggen6-Aug-19 12:20
professionalEddy Vluggen6-Aug-19 12:20 
GeneralRe: Source Convert VB.Net to C# Pin
ZurdoDev6-Aug-19 14:59
professionalZurdoDev6-Aug-19 14:59 
AnswerRe: Source Convert VB.Net to C# Pin
Eddy Vluggen6-Aug-19 12:18
professionalEddy Vluggen6-Aug-19 12:18 
QuestionSource Convert VB.Net to C# Pin
Baloch_khan6-Aug-19 8:58
Baloch_khan6-Aug-19 8:58 
Questionself talking hangman vb console game tutorial Pin
StarTrekCafe29-Jul-19 18:48
StarTrekCafe29-Jul-19 18:48 
AnswerRe: self talking hangman vb console game tutorial Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:32
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:32 
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 

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.