[fpc-pascal]Postgres, Call a field by his name...

Ken J. Wright kenw at cncware.com
Tue Dec 19 20:41:15 CET 2000

At 13:07 12/19/2000 -0600, you wrote:
>	I'm using Postgres and the Linux Unit, right now I call a field by his
>field number, something like :
>PQgetvalue(res, i, 1);
>	But I would like to use the field name...some like :
>PQgetvalue(res, i, my_field);

PQgetvalue(res, i, PQfnumber(res,'fieldname'));

More information about the fpc-pascal mailing list