Solved

database record to form caption

Posted on 2003-11-12
5
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…

734 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