instinctfx 0 Newbie Poster

Hey

I usually use RTTI to access object when reading or writing them to a dataset so i have prior knowledge of what the field required

Example

if vPropInfo^.Kind = tkFloat then
begin
  if vField.DataType = ftDateTime then
    vField.AsDateTime := FloatToDateTime(GetFloatProp (thisObject, vPropInfo));
  else
    vField.AsFloat := GetFloatProp (thisObject, vPropInfo));
end;

This works fine with a preexisting data set as in the example above BUT The issue im having is determining weather or not an object property is a TDateTime type not just a float. RTTI says they are tkFloat and i cannot think of a way (short of seeing if the word DATE is in the property name or what not)

Ideas ?