Click here to Skip to main content
15,898,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: drawline Pin
Eddy Vluggen28-Nov-14 7:55
professionalEddy Vluggen28-Nov-14 7:55 
GeneralRe: drawline Pin
JR21228-Nov-14 18:11
JR21228-Nov-14 18:11 
GeneralRe: drawline Pin
Eddy Vluggen30-Nov-14 4:44
professionalEddy Vluggen30-Nov-14 4:44 
GeneralRe: drawline Pin
JR2122-Dec-14 20:45
JR2122-Dec-14 20:45 
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 
I'm underwater on this here. First time using vb to get JSON from a web service, actually I'm scraping it off a webpage.

This is my first attempt here, seems like it parsed, but I'm not able to figure out how to unpackage the object clean. I can see the obj in the web dev, and the data is key value paired.
Dim obj() As Object = New JavaScriptSerializer().Deserialize(Of Object)(pHTML)
sPR(idx).m_partNumber = obj(idx)(0).ToString
sPR(idx).m_shortDescription = obj(idx).Item("sItemName").ToString

I found this, but I can't find the instructions on how to use it.
https://gist.github.com/monk8800/3760559[^]

This is 1 record in a JSON array that I fetched from the web service
{
        "sUrl": "/Itemdesc.asp?ic=CLK-WCP-1PK",
        "sItemCode": "CLK-WCP-1PK",
        "sItemName": "WaveCenter Wireless Port License",
        "sItemImage": "CLK-WCP-1PK_50.jpg",
        "sItemOrigImage": "CLK-WCP-1PK.jpg",
        "sItemPrice": "$315.00",
        "sRegularPrice": "$749.99",
        "sItemStock": "7",
        "bAllowSaleUnit": "F",
        "sMeasureDesc": "EACH",
        "sItemOrder": "Order"
    },


I suspect that I need to use the List of T, like a type template. I can build one based on the array record above, just have no clue how to build one in vb.

Question:
I just need to get pointed in the right direction here.
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 
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 

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.