Solved

database record to form caption

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

Technology Partners: 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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month5 days, 6 hours left to enroll

635 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