![]() Here is a sample of the JSON that is returned from the VB. I have searched for examples here and have tried numerous attempts to adapt what I have found for VB.Net, but I cannot get any code past the following to work: Dim jsonstring As String = responseFromServerĭim Worksteps As Dictionary(Of String, String) = JsonConvert.DeserializeObject(Of Dictionary(Of String, String))(jsonstring) A variable declared with the Static statement and assigned a value retains its value from one invocation of the method to the next. Static creates a local variable or local array with the name and size (in the case of an array) and data type specified. I need to Parse a JSON response from a REST API to determune if a Name has a specific status. The Static statement provides an alternative to Var. But in the second case, it’s an array of objects, translated to Auto(), so you have to make sure you know what you’re dealing with before you can assign it to a variable. ![]() I've installed the Newtonsoft DLL in Prinergy so the various methods for "deserializing" the JSON I've found don't give me compile errors but getting beyond that to duplicate what I can do in Xojo is escaping me. In the first case, the consultants entry is an object, so your code works because an object translates to a. As much as I have searched for solutions, nothing I try in VB does anything but give me errors trying to use a dictionary to retrieve the values. How do I make VB.net code do the same thing that the Xojo code I show below does. Have a look at this document: UserGuide-Fundamentals.pdf Site 86. THis will be for custom Code on Kodak Rules Based Automation that uses embedded VB.Net. ![]() Regarding cycling through the entire bin looking for non-nil values, you could create a helper array were you append the indices of the bin occupied slots. I need to duplicate what I can do in Xojo in VB.Net. What it ensures is to have the Keys and Values in-sync (as long as the Dictionary is not modified of course).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |