Evening All,
I am extracting data from a API which exposes records as properties of the class so an example would be
For Each entry As Webservice.Names In objResponse.results
string = string & "'firstname'=" & entry.firstname
string = string & "'surname'=" & entry.surname
next
now we have about 50 entities in the webservice, and each has at least 10 "fields" my question is can I expose properties any other way ?
i.e. could i
For Each entry As Webservice.Names In objResponse.results
for each prop in entry.properties
string = string & "'" & prop.name & "'=" & entry.fields(prop.name)
next
next
or similar, i can't seem to expose the properties above, but really looking for a way that i don't have to hand type every property against the string for inserting to the database.
any thoughts on how to achieve this within VB if the properties aren't exposed as above example
Thanks In Advance
entry.Fooorentry.fields(prop.name)? What value is added by moving them elsewhere if it is just for a db operation?