|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Assign property from db to object property?I have a large number of name/value pairs in a database I want to loop
through and assign the value to an object with the property of that name. Pseudocode would be: while oRec.Read myObject.oRec("PropertyName") = oRec("PropertyValue") loop Is there any way to this? Many thanks for any help. Burt Look at the CallByName function
In message <1138475403.417522.214***@g49g2000cwa.googlegroups.com>, Burt <burt_5***@yahoo.com> writes Show quoteHide quote >I have a large number of name/value pairs in a database I want to loop >through and assign the value to an object with the property of that >name. Pseudocode would be: > >while oRec.Read > myObject.oRec("PropertyName") = oRec("PropertyValue") >loop > >Is there any way to this? Many thanks for any help. > >Burt > -- Chris Petchey That did it, thanks.
Burt Chris Petchey wrote: Show quoteHide quote > Look at the CallByName function > > > > In message <1138475403.417522.214***@g49g2000cwa.googlegroups.com>, Burt > <burt_5***@yahoo.com> writes > >I have a large number of name/value pairs in a database I want to loop > >through and assign the value to an object with the property of that > >name. Pseudocode would be: > > > >while oRec.Read > > myObject.oRec("PropertyName") = oRec("PropertyValue") > >loop > > > >Is there any way to this? Many thanks for any help. > > > >Burt > > > > -- > Chris Petchey
User's Mail Editor
Problème data tramsmission from tableadapter to ACCESS database Odd or Even How to: Retrieving BuiltinDocumentProperties from Word Document How to: Omit Deafulted Elements from XML When Serializing late binding problem with option strict What happen to Find in Files in VS2005? Hpow to create a background process/application? convert rtf to html Can't get a value from my app.config file |
|||||||||||||||||||||||