Can I write an object refence to file with one command? like a dataset.

D

David Morrow

I use VB7
I would like to know if I can write a dataset object or
any other object like textbox to file with a single
command. Or do I have to tear apart the objects and write
its properties to file?
What would be the code to write and read a completed
dataset with tables and rows data to a datafile on the
harddrive?
 
H

Herfried K. Wagner [MVP]

* "David Morrow said:
I would like to know if I can write a dataset object or
any other object like textbox to file with a single
command. Or do I have to tear apart the objects and write
its properties to file?

You can serialize the object if the class is marked as 'Serializable'.
What would be the code to write and read a completed
dataset with tables and rows data to a datafile on the
harddrive?

'DataSet.WriteXml', 'DataSet.ReadXml'.
 

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

Top