Click here to Skip to main content
15,884,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Questionhow to deal with this error Pin
Member 145002187-Jul-19 22:09
Member 145002187-Jul-19 22:09 
NewsRe: how to deal with this error Pin
CHill608-Jul-19 1:45
mveCHill608-Jul-19 1:45 
AnswerRe: how to deal with this error Pin
Dave Kreskowiak8-Jul-19 2:11
mveDave Kreskowiak8-Jul-19 2:11 
Questionemail a attached file vb.net Pin
Member 145002187-Jul-19 21:00
Member 145002187-Jul-19 21:00 
AnswerRe: email a attached file vb.net Pin
Chris Quinn8-Jul-19 0:58
Chris Quinn8-Jul-19 0:58 
GeneralRe: email a attached file vb.net Pin
Member 145002188-Jul-19 23:15
Member 145002188-Jul-19 23:15 
AnswerRe: email a attached file vb.net Pin
Dave Kreskowiak8-Jul-19 2:12
mveDave Kreskowiak8-Jul-19 2:12 
QuestionUsing a custom renderer for toolstrip, but only first button is properly painted Pin
Alan Burkhart5-Jul-19 5:53
Alan Burkhart5-Jul-19 5:53 

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.