Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   DB Tools (http://www.delphipages.com/forum/forumdisplay.php?f=7)
-   -   SQL Table data on label control (http://www.delphipages.com/forum/showthread.php?t=217605)

sktamrkar 02-02-2017 03:43 AM

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.


Thnx
Sandeep Kumar

Norrit 02-02-2017 08:20 AM

A full table in 1 label?

Single column from single row could be something like
Code:

Label1.Caption := Table1.FieldByName('fieldname').AsString();


All times are GMT. The time now is 04:40 AM.

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