formi
asked on
default value in Delphi component
Hi
I have an own component where I add a property SaveOrder with a default value. If I add the component on design-time the SaveOrder is false instead of true:
See my simple sample. What's wrong?
Thanks, Peter
I have an own component where I add a property SaveOrder with a default value. If I add the component on design-time the SaveOrder is false instead of true:
tTest = class(TDbGrid)
private
FSaveOrder : boolean;
published
property SaveOrder: boolean read FSaveOrder write FSaveOrder default true;
end;
See my simple sample. What's wrong?
Thanks, Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help!