Go to Post YES!!!!!! I read this and jumped! This is awesome and amazing! Thank you so much Dean Kamen and FIRST!!! YOU ARE AMAZING! - torihoelscher [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 12-08-2004, 11:54
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,479
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: disabling a button

I probably should point you to this sticky. I'm afraid that Chief Delphi is a web site of a FIRST Robotics team sponsored by Delphi, not a site covering Delphi programming.

There are a few folks here who may know Delphi programming, but your odds would probably be better at a Delphi programming forum.

Thanks for stopping by, either way! (Like robots? We've got plenty.)

--Billfred, aka "I am not a moderator, but I am JVN."

(sorry, forum in-joke. couldn't resist)
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Closed Thread


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 15:59.

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