We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,725 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Tbutton Onclick

Hi I am trying to execute a TADODataSet by clicking on a button. As of now. whenever I run my delphi program my TADODataSet automatically activates and runs its corresponding stored procedure in sql. I want to be able to press a button on a form in order to execute my TADODataset and NOT have it run automatically.

I have been messing around with callbacks to get this to work but I have not had any success. Any help or suggestions will be greatly appreciated.

Thank you

2
Contributors
3
Replies
2 Days
Discussion Span
2 Years Ago
Last Updated
4
Views
youngmoolah
Newbie Poster
6 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Where is the code? What exactly does not work?

Wolfgan
Junior Poster
101 posts since Jun 2010
Reputation Points: 34
Solved Threads: 14
Skill Endorsements: 1

I do not have any code because I do not know what code to use. I have no idea how to begin with this. I just need to be able to press a button to activate my TADODataSet instead of having it run automatically

youngmoolah
Newbie Poster
6 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Why do not you read the help?

In design time put Connection property to false. Then when you create a form need to call Open or set the Connected property to true.

ADOConnection1.Open;
ADODataSet.Open;

Wolfgan
Junior Poster
101 posts since Jun 2010
Reputation Points: 34
Solved Threads: 14
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0623 seconds using 2.65MB