putrcolumndata with pointer
Posted: Wed 22 Jun 2011 13:35
We use Delphi V and assoc mydac-
We have a variable normally accessible as a pointer which is initialized with a getmem(ptr,size) line of code. We modify the pointer referenced contents and now want to store the referenced contents in a text column in on-line data base. can I use the putcolumndata method with the ptr as datasource like
putcolumndata(fieldname,1,ptr)
or if not, can I typecast pointer as Pchar and use
putcolumndata(fieldname,1,Pchar(ptr))?Thanks,
Jennifer good
We have a variable normally accessible as a pointer which is initialized with a getmem(ptr,size) line of code. We modify the pointer referenced contents and now want to store the referenced contents in a text column in on-line data base. can I use the putcolumndata method with the ptr as datasource like
putcolumndata(fieldname,1,ptr)
or if not, can I typecast pointer as Pchar and use
putcolumndata(fieldname,1,Pchar(ptr))?Thanks,
Jennifer good