How should it be any diferent from normal access via the property getter?

If you use the rtti you can tell whether or not the curent value is the default 
value, but you can't tel if it is the default value by default or by choice.

Sam

-----Original Message-----
From: Marc Santhoff <[EMAIL PROTECTED]>
Sent: 04 December 2007 01:55
To: [email protected]
Subject: [lazarus] returning empty published property from component

Hi,

what is the convention for returning unset published properties when
making a component?

For numerical values it is 0 or eventually a default value, but how
about strings? Should an empty string be returned or a NIL pointer?

I'm mostly thinking of property editors and the object inspector here.

TIA,
Marc


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to