Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make an array of labels

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all , is there any way of doing an array of labels ?

TIA

Thor
 
sure, TLabel *lbl[50]; will allot you 50 labels. then you say something like:

lbl[1] = new TLabel(this);
lbl[1]->Parent = this;

make sure you have the 'this' in there or the label will not be visible, no matter what you do.

Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top