For compatibility reasons (objects are serialized and exported and must match external names) I would like to have a field name being 'type', i.e.
TTBaseWebResponse = class
private
type: String;
success: Integer;
end;
or
TTBaseWebResponse = class
private
ftype: String;
fsuccess: Integer;
public
type: string read fstring write fstring;
success: integer read fsuccess write fsuccess;
end;
Delphi (XE2) won't even compile this. Is this at all possible? How?
Try using & before the field name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With