[Lazarus] Inactive Dataset

Jalal jalsalihi at yahoo.com
Wed May 28 21:55:33 CEST 2008


123555

Dave Coventry,

> As does explicitly using "SQLQuery.Close" prior to opening the Query. :(

I suggest you use SQLQuery.Active := True (or False) instead of Open and Close.


> Alternatively, is there another way of extracting the information?

If you don't need the db-aware visual controls you can use the libpq functions directly, they aren't hard to use. Some are:

PQconnectdb
PQstatus
PQexec
PQnfields
PQntuples
PQfname
PQgetvalue
PQclear
PQfinish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080528/3446138d/attachment-0007.html>


More information about the Lazarus mailing list