The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,706 other followers

Archive for July 23rd, 2009

Delphi – indexed properties

Posted by jpluimers on 2009/07/23

Sometimes, indexed properties can make your life much easier: they allow you to redirect single properties to central Get/Set methods.

You don’t see it used very often, but when you need it, it is very handy.
There is even some online help on it (look for “Index Specifiers”) it gives you the basics, but no compiling example.

For me it works best when I have a complete, but concise example.

So here is one: TMyIndexedPropertyComponent that has property Range1Value through Range4Value of type TRange, all centralized to one pair of read/write methods: GetRangeValue and SetRangeValue.
Read the rest of this entry »

Posted in Component Development, Delphi, Development, Package Development, Software Development | 2 Comments »

 
%d bloggers like this: