Hi, I could in Delphi name labels with a number like lblName(1).
This is useful when I'm making functions, it can be used like this:
int i = 0;
if ( a > b)
{
i = 1;
}
lblName(i).Text ="This is a great number";
Is it possible to do something like this, without making a list of objects ?
<=?Utf-8?B?S2Fyc3RlbiBMdW5kc2dhYXJk?= <Karsten
Lundsgaard@discussions.microsoft.com>> wrote:
> Hi, I could in Delphi name labels with a number like lblName(1).
> This is useful when I'm making functions, it can be used like this:
[quoted text clipped - 7 lines]
>
> Is it possible to do something like this, without making a list of objects ?
No (or at least, not cleanly) - but what do you have against making a
list (or array) of labels?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Karsten Lundsgaard - 17 Sep 2004 19:39 GMT
Hi Jon, thanks for the help.
I have nothing against using a list, I would just like to now if there is an
easier way of doing it.
Regards
Karsten
> <=?Utf-8?B?S2Fyc3RlbiBMdW5kc2dhYXJk?= <Karsten
> Lundsgaard@discussions.microsoft.com>> wrote:
[quoted text clipped - 12 lines]
> No (or at least, not cleanly) - but what do you have against making a
> list (or array) of labels?