I tried new objects - Recordref and Fieldref. If I write if (frField.TYPE=frField.TYPE::“Date”) then compiler said me: “Can’t convert…FieldType=Type”
RecordRef and FieldRef are two additional variable datatypes.So Fieldref.type is just an information.You can check it with other fieldref type like if fieldref1.type = fieldref2.type then … remember type is information not a property. hope u understood
quote:
Originally posted by lakshmivalluru
RecordRef and FieldRef are two additional variable datatypes.So Fieldref.type is just an information.You can check it with other fieldref type like if fieldref1.type = fieldref2.type then … remember type is information not a property. hope u understood
Yes, thank you.
I found out that when you have a fieldref, you can do this Local var: Variant dmyVar Code: dmyVar := FieldRef.Value; IF dmyVar.ISINTEGER THEN BEGIN // … END;