Assign property from db to object property?

  • Thread starter Thread starter Burt
  • Start date Start date
B

Burt

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



Burt said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top