Serialize class module
-
In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?:confused: Thank you, ----------------- http://www.zachcalvert.com
-
In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?:confused: Thank you, ----------------- http://www.zachcalvert.com
Not support in VB6. There is no operator overloading what-so-ever. This isn't even a feature in Visual Basic.NET 2002 or 2003. This won't happen until the 2005 release. Also, the operator your overloading is a stream operator. There is no such operator in the 2005 release, AFAIK. You class will have to supply it's own support for converting itself to a string and returning that string. Then your parent code can use that to output to whatever stream you see fit. But, there is no operator that does this for you. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome