You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently is no support for serializing a tkMethod, like the FOnChange/ of a TStringList.
As a starter, in DeHL.Types.pas around 5114, you could do // WARNING: dangerous hack to skip serializing TStringList Methods if (AField.Name = 'FOnChange') or (AField.Name = 'FOnChanging') then Exit(true);
to skip the fields. Better would be to add proper support in MethodType.DoSerialize.
Todo:
[ ] Write a test case that test an object with one member of type TStringList
[ ] Implement support
EDIT: Sh**, sorry. Wanted to add the Issue to my fork for own reference. Any chance to move it there? Or simply delete...
The text was updated successfully, but these errors were encountered:
There currently is no support for serializing a tkMethod, like the FOnChange/ of a TStringList.
As a starter, in DeHL.Types.pas around 5114, you could do
// WARNING: dangerous hack to skip serializing TStringList Methods if (AField.Name = 'FOnChange') or (AField.Name = 'FOnChanging') then Exit(true);
to skip the fields. Better would be to add proper support in MethodType.DoSerialize.
Todo:
[ ] Write a test case that test an object with one member of type TStringList
[ ] Implement support
EDIT: Sh**, sorry. Wanted to add the Issue to my fork for own reference. Any chance to move it there? Or simply delete...
The text was updated successfully, but these errors were encountered: