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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using buttons in an array

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
GB
9645.1

Delphi 5

Heres my problem.

I have 5 buttons on my screen

I have a DB table of categories with anything up to 5 records in

What is the easiest way to get the 5 category name from the Db into captions on the buttons??

i think i want to put the buttons into an array but how and where do i go from there??

Any hints or suggestion appreciated..

 
I would use a TObjectList, but with only 5 buttons, I might just use in-line code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top