Solved

database record to form caption

Posted on 2003-11-12
5
211 Views
Last Modified: 2010-04-05
How do you pass a record in a table (ADO) at runtime to form caption?
Example:
I have in my table only one record:Name (say name is senad)
So in runtime I have my form displaying caption "senad"
How is the best way to do it?
0
Comment
Question by:senad
  • 3
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 125 total points
ID: 9731957
caption := dataset.FieldByName('YourFieldNameHere').AsString;

use this in the afterpost and afterscroll event

meikl ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9731975
btw.
hi senad,
long time not seen here.
how are you?

meikl ;-)
0
 
LVL 22

Author Comment

by:senad
ID: 9732995
Hi Michael,
I try and stay away from this bluish nightmare as much as possible.
Five minutes looking into this "new look" is similar to snow blindness,ha,ha,ha...
Horrible !
And to think they have actually paid this **** !
0
 
LVL 22

Author Comment

by:senad
ID: 9733005
Forgot to ask you...what do you think of this "new look" ?
Honest answer please :-))))
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9733082
firsttime i was very annoyed about the new look,
but as longer you use it ...

the oldlook was better and is already available:

http://oldlook.experts-exchange.com/Programming/Programming_Languages/Delphi

>I try and stay away from this bluish nightmare as much as possible.
what for a nightmare?

meikl ;-)

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question