Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB Tools

Lost Password?

Thread Tools Display Modes
Old 02-02-2017, 03:43 AM
sktamrkar sktamrkar is offline
Join Date: Oct 2013
Posts: 71
Default SQL Table data on label control

GM Experts,
Plz guide how to display sql table data on label control.
In detail, i have created a database in sql server 2008 with one table. I want to retreive data to label on GUI on button click. Plz give me code.

Sandeep Kumar
Reply With Quote
Old 02-02-2017, 08:20 AM
Norrit Norrit is offline
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,335

A full table in 1 label?

Single column from single row could be something like
Label1.Caption := Table1.FieldByName('fieldname').AsString();
Reply With Quote

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.