Go to Post Overall, I thought FIRST did a great job with the rules this year - very simple and very clear for the most part. However, something is always going to fall through the cracks (and I don't mean that in a bad way - people need to know that it's practically impossible to do something perfectly). - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-08-2004, 11:46
gomez6760 gomez6760 is offline
Registered User
no team
 
Join Date: Aug 2004
Location: canada
Posts: 1
gomez6760 has a little shameless behaviour in the past
disabling a button

can someone tell me how to disable or enable a button depending on the name of the button that I have stored in my database but without doing if's in my procedure. What I want is the following:

Example I have 10 buttons in a form. The name of my buttons are stored in my database. But when my database sends back my result (example only 4 names) I cannot put the name of the button because delphi does not know that that is an object, it says that it is a string which is right because you store the name of the button as a string in your database.

I do not want to do a loop an 10 buttons and do if name is equal to btn.name
I would like to do a proedure only with the results

Any suggestions ? Thank you
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Button wishlist 2004 natonal's Tytus Gerrish Championship Event 19 16-04-2004 00:53
Button Programing BobcatProgramer Programming 6 25-02-2004 16:43
which button machine do you use and do you like it? KenWittlief General Forum 10 16-10-2003 00:01
Select button and user mode n[ate]vw Programming 2 20-01-2003 16:33
Just wondering about a button from nats... archiver 2001 1 24-06-2002 04:07


All times are GMT -5. The time now is 16:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi