Board index » delphi » Non-Data aware controls and ADO

Non-Data aware controls and ADO

Hi,

I just got my form working with ADO thanks to some posts in this news group,
but I have a couple of questions.

I need to load a graphic based on a value that is returned but not
displayed.

1. How do return a recordset?
2. How do I get data without using data aware controls?

Thanks

 

Re:Non-Data aware controls and ADO


Use the OnDataChange event of the datasource to change the contents of the
image.

ps. The parameter passed by OnDataChange is nil if the entire record changed
(when cursor moves) or a field if only that field changed.

"Suddn" <Bo...@NoSpam.com> schreef in bericht
news:zzf_5.149025$U46.4838721@news1.sttls1.wa.home.com...

Quote
> Hi,

> I just got my form working with ADO thanks to some posts in this news
group,
> but I have a couple of questions.

> I need to load a graphic based on a value that is returned but not
> displayed.

> 1. How do return a recordset?
> 2. How do I get data without using data aware controls?

> Thanks

Re:Non-Data aware controls and ADO


Quote
On Fri, 15 Dec 2000 02:43:43 GMT, "Suddn" <Bo...@NoSpam.com> wrote:

d.

Quote

>2. How do I get data without using data aware controls?

If you use a query to get the data from a database table(s), for
example, you can refer to any of the returned values several ways:
dataset.fieldbyname('myfield').value
dataset.fields[2].asstring (the third field in the dataset)
etc...
Look up tquery, ttable, in help. browse thru the properties and 'see
also' lists.

hth,
Dan
--
Dan Brennand
CMDC systems, inc.
Configuration Management and Document Control:
visit us at www.cmdcsystems.com
[SPAM block: change at to @ in my e-mail address]

Other Threads