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

  • Thread starter Thread starter David Morrow
  • Start date Start date
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?
 
* "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'.
 
Back
Top