Saving User-Defined Types To File

egrow3
06-02-2003, 12:45 PM
I was wondering if there is a short-cut way to save user-defined objects to a file without having to create your own "Save" function or sub within the user-defined class. It would be great if I didn't have to break my objects back down to strings to save them, and then put them back together to load them from file.

pinster
06-03-2003, 01:28 AM
You can define the user type in a module and import that module to any project you want. that's the easiets way.

Flyguy
06-03-2003, 05:34 AM
In VB there is no magic method to save a class to a file.
I always use the method you describe by adding a ToString and FromString method to a class.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum