Hello,
I'm facing an issue regarding synchronization between 2 Objects. Let's hope I can explain it briefly:
i have two Obects of the Same Type. Thy have some Properties which need to be Synchronized.
Simple Example:
MyClass = class
private
fID: Integer
fSharedData: String;
public
property ID: Integer read fID write fID;
property SharedData: String read fSharedData write fSharedData;
end;
i can't simply copy the Objects because i dont want them to end up having the same ID.
But i want to keep some Shared Data synchronized.
Is there any way i can achiev this without writing 200 lines of this:
procedure SyncMyClass(Dest: MyClass);
begin
Dest.fSharedData:= fSharedData
//there will be some other Variabels that need to be Syncronized
end;
i hope you guys understood my problem and i hope someone could be so kind to help me out.
thanks in advance.