Hi everyone,
I'm having trouble getting a TDateTime property to be read via RTTI.
I can retrieve the string and integer property value.
I use the following code for string:
"Prop.GetValue(TObject(Obj)).AsString;"
And this one for integer:
"Prop.GetValue(TObject(Obj)).AsInteger;"
However, for TDateTime properties there is no adequate return. I tried to recover as an integer, but, it gives the following error:
"Invalid class typecast"
Does anyone know any way to retrieve the value of TDateTime properties?
Any help is most welcome.
Thanks for listening.