Solved

database record to form caption

Posted on 2003-11-12
5
214 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

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