[fpc-pascal] Extended property can't have default value?

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Oct 6 12:48:56 CEST 2008


Why is the following not allowed in a class declaration?

    property Increment: extended read FIncrement write SetIncrement default 1.0;


yet this is...

    property Increment: integer read FIncrement write SetIncrement default 1;


What would be the major obstacle between Extended and Integer types?
How can I overcome this issue?


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list