(Or put the variable in the Interface section, but then it's no longer private.)
They work like this: a data member is declared as Shared (scope can be specified normally) and all instances of the class and its descendants share the same variable - a bit like having a global with class scope. I can see how they'd be useful in some situations.---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/