Click here to Skip to main content
15,913,252 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: accessing form member from another form Pin
steff kamush20-Jan-04 5:48
steff kamush20-Jan-04 5:48 
GeneralRe: accessing form member from another form Pin
acecase21-Jan-04 3:53
acecase21-Jan-04 3:53 
GeneralSerialising objects which change alot Pin
cnurse17-Jan-04 0:12
cnurse17-Jan-04 0:12 
GeneralRe: Serialising objects which change alot Pin
Colin Angus Mackay17-Jan-04 3:08
Colin Angus Mackay17-Jan-04 3:08 
GeneralRe: Serialising objects which change alot Pin
cnurse17-Jan-04 21:24
cnurse17-Jan-04 21:24 
GeneralRe: Serialising objects which change alot Pin
Colin Angus Mackay18-Jan-04 0:46
Colin Angus Mackay18-Jan-04 0:46 
GeneralRe: Serialising objects which change alot Pin
cnurse18-Jan-04 1:24
cnurse18-Jan-04 1:24 
GeneralRe: Serialising objects which change alot Pin
Ray Cassick19-Jan-04 16:51
Ray Cassick19-Jan-04 16:51 
I hate to say it but I think this is something that is going to be bad for you.

Just think of what it is like way back when they created Microsoft Word 1.0. You saved (serialize) something into a .doc format and saved it. Then after several years they significantly changed the doc format so that the new type is not backwards compatible. This is why they make document converters and why programs allow you to import data from older versions.

The only thing I can think of would be to add a version number to your class that will get serialized out then when you read it in you can change the deserialize method of the class to check for the version and handle any known conversions as needed. I can see this as getting a but messy though if you are going through many lifecycles.

Depending on what you are trying to do, if the formats are going to change a lot maybe you want to store your stuff in a database. This is simpler to add columns to and then as long as you don’t change the format of the existing data too much adding new things is not that hard. It is a catch 22 though. Using regular serialization is simpler because you have less to do, but in your case I think it is ending up being more of a pain than just putting a bit more work into making your storage mechanism a but more robust and less brittle.


Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.


GeneralRe: Serialising objects which change alot Pin
cnurse20-Jan-04 2:06
cnurse20-Jan-04 2:06 
GeneralH-E-L-P!!! please.... Pin
Anonymous16-Jan-04 21:42
Anonymous16-Jan-04 21:42 
GeneralRe: H-E-L-P!!! please.... Pin
cnurse16-Jan-04 23:56
cnurse16-Jan-04 23:56 
GeneralRe: H-E-L-P!!! please.... Pin
acecase17-Jan-04 0:48
acecase17-Jan-04 0:48 
GeneralRe: H-E-L-P!!! please.... Pin
Anonymous17-Jan-04 3:39
Anonymous17-Jan-04 3:39 
GeneralRe: H-E-L-P!!! please.... Pin
cnurse17-Jan-04 21:44
cnurse17-Jan-04 21:44 
QuestionEvents-Application Idle -Help? Pin
Member 76608416-Jan-04 18:25
Member 76608416-Jan-04 18:25 
AnswerRe: Events-Application Idle -Help? Pin
gpa200021-Jan-04 4:15
gpa200021-Jan-04 4:15 
GeneralRegistry Pin
Jblake0016-Jan-04 4:46
Jblake0016-Jan-04 4:46 
Questionany caller id supporting modem available in india ? Pin
Mohan G16-Jan-04 4:32
Mohan G16-Jan-04 4:32 
AnswerRe: any caller id supporting modem available in india ? Pin
Sarvesvara (BVKS) Dasa28-Mar-04 0:06
Sarvesvara (BVKS) Dasa28-Mar-04 0:06 
GeneralOne more Help Please!! Pin
Het210916-Jan-04 1:41
Het210916-Jan-04 1:41 
GeneralRe: One more Help Please!! Pin
Jblake0016-Jan-04 4:41
Jblake0016-Jan-04 4:41 
GeneralRe: One more Help Please!! Pin
Niels Penneman16-Jan-04 6:08
Niels Penneman16-Jan-04 6:08 
GeneralNiel, Pin
Het210916-Jan-04 18:17
Het210916-Jan-04 18:17 
GeneralRe: One more Help Please!! Pin
Guillermo Rivero16-Jan-04 8:55
Guillermo Rivero16-Jan-04 8:55 
GeneralGuillermo! u are great,, Pin
Het210916-Jan-04 18:13
Het210916-Jan-04 18:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.