Click here to Skip to main content
15,890,670 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionApplication Software with Online Database Pin
akashangel26-Nov-14 18:39
akashangel26-Nov-14 18:39 
AnswerRe: Application Software with Online Database Pin
Richard MacCutchan26-Nov-14 20:40
mveRichard MacCutchan26-Nov-14 20:40 
AnswerRe: Application Software with Online Database Pin
Bernhard Hiller27-Nov-14 0:36
Bernhard Hiller27-Nov-14 0:36 
QuestionDeserialize Json and store values Pin
jkirkerx26-Nov-14 6:56
professionaljkirkerx26-Nov-14 6:56 
AnswerRe: Deserialize Json and store values Pin
Eddy Vluggen26-Nov-14 8:09
professionalEddy Vluggen26-Nov-14 8:09 
GeneralRe: Deserialize Json and store values Pin
jkirkerx26-Nov-14 8:44
professionaljkirkerx26-Nov-14 8:44 
AnswerRe: Deserialize Json and store values Pin
Richard Deeming26-Nov-14 8:20
mveRichard Deeming26-Nov-14 8:20 
GeneralRe: Deserialize Json and store values [Solved] Pin
jkirkerx26-Nov-14 8:43
professionaljkirkerx26-Nov-14 8:43 
I woke up super early this morning, not enough sleep.

The error was from my structure not being dimensioned, SPR, so the right side could of been correct.

So I used JSON to Data Contract and made a class called dc_strekwave.
http://jsontodatacontract.azurewebsites.net/[^]

Then wrote this, I suppose I don't need the structure anymore, since the obj seems to do the trick now.

That was actually pretty easy in hindsight. very little code required once the class was made. Now I need to spit out a comma delimited file, and the prototype is done, and I can ship it today for approval.

Private Function parse_HTML_package_Store( _
        ByVal pHTML As String) As Integer

        Dim dwExitCode As Integer = 2
        Dim sPR(0) As structure_product_records

        Try

            Dim obj As dc_streakwave() = New JavaScriptSerializer().Deserialize(Of dc_streakwave())(pHTML)
            ReDim Preserve sPR(obj.Length - 1)

            For idx As Integer = 0 To obj.Length - 1

                sPR(idx) = New structure_product_records
                sPR(idx).m_Url = obj(idx).sUrl
                sPR(idx).m_ItemCode = obj(idx).sItemCode
                sPR(idx).m_ItemName = obj(idx).sItemName
                sPR(idx).m_ItemImage = obj(idx).sItemImage
                sPR(idx).m_ItemOrigImage = obj(idx).sItemOrigImage
                sPR(idx).m_ItemPrice = obj(idx).sItemPrice
                sPR(idx).m_RegularPrice = obj(idx).sRegularPrice
                sPR(idx).m_ItemStock = obj(idx).sItemStock
                sPR(idx).m_AllowSaleUnit = obj(idx).bAllowSaleUnit
                sPR(idx).m_MeasureDesc = obj(idx).sMeasureDesc
                sPR(idx).m_ItemOrder = obj(idx).sItemOrder

            Next

            dwExitCode = 0

        Catch ex As Exception
            dwExitCode = 1

        End Try

        'Write the structure to a file
        'Write the structure to a comma delimited file

        Return dwExitCode

    End Function

QuestionDrag drop multiple rows between datagrids Pin
tommydk26-Nov-14 1:09
tommydk26-Nov-14 1:09 
AnswerRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen26-Nov-14 8:12
professionalEddy Vluggen26-Nov-14 8:12 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk27-Nov-14 7:55
tommydk27-Nov-14 7:55 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen28-Nov-14 5:26
professionalEddy Vluggen28-Nov-14 5:26 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk29-Nov-14 6:19
tommydk29-Nov-14 6:19 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen30-Nov-14 4:46
professionalEddy Vluggen30-Nov-14 4:46 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk12-Feb-15 10:18
tommydk12-Feb-15 10:18 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen12-Feb-15 11:37
professionalEddy Vluggen12-Feb-15 11:37 
Questionhow to convert excel sheet to xml Pin
Member 1126441326-Nov-14 0:37
Member 1126441326-Nov-14 0:37 
AnswerRe: how to convert excel sheet to xml Pin
Eddy Vluggen26-Nov-14 8:15
professionalEddy Vluggen26-Nov-14 8:15 
Questioni need help with a vb project anything helps! :) Pin
Member 1126438325-Nov-14 17:49
Member 1126438325-Nov-14 17:49 
AnswerRe: i need help with a vb project anything helps! :) Pin
Eddy Vluggen26-Nov-14 8:19
professionalEddy Vluggen26-Nov-14 8:19 
GeneralRe: i need help with a vb project anything helps! :) Pin
Member 1126438326-Nov-14 8:31
Member 1126438326-Nov-14 8:31 
GeneralRe: i need help with a vb project anything helps! :) Pin
Eddy Vluggen26-Nov-14 10:27
professionalEddy Vluggen26-Nov-14 10:27 
GeneralRe: i need help with a vb project anything helps! :) Pin
rx7man1-Dec-14 9:30
rx7man1-Dec-14 9:30 
Questionwebbrowser class, automation, document complete Pin
jkirkerx23-Nov-14 13:56
professionaljkirkerx23-Nov-14 13:56 
AnswerRe: webbrowser class, automation, document complete [solved] Pin
jkirkerx23-Nov-14 16:58
professionaljkirkerx23-Nov-14 16: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.