I already did this by overriding the Compare method, so I could compare two different objects (they may be of the same type, but they don't have to).
If they're not the same type, then the method returned False.
If it was the same type (or a derived type), it did compare the fields and returned True if every field had the same values in them.
But when a field is added, I would have to change the Compare method too.
The B3D Str function was perfect, as it did it automatically.
It even could handle fields that were pointers to other objects.
But I suppose there is no way to 'loop' through all fields of an object, is there?
Then it would be possible to create a Str method, identical to B3D's Str function.
If they're not the same type, then the method returned False.
If it was the same type (or a derived type), it did compare the fields and returned True if every field had the same values in them.
But when a field is added, I would have to change the Compare method too.
The B3D Str function was perfect, as it did it automatically.
It even could handle fields that were pointers to other objects.
But I suppose there is no way to 'loop' through all fields of an object, is there?
Then it would be possible to create a Str method, identical to B3D's Str function.