Page 1 of 1

Saving TRichview into db with SQL

Posted: Mon May 21, 2007 7:57 pm
by Spaznuski
hey I am new to saving files to DB,
Using Postgresql with postgreDAC, i have table setup with field bytea (blob).
but want to insert the contents of TRichview into the db with an INSERT SQL.
could this be done?


also side question
is it possible to create controls when needed if placed in a TRichview. eg. I have one document and insert a text box and a checkbox, save it. in another app with a TRichview if i open the saved file, could these text boxes and check boxes be created automatically and added to the document/form.

Regards

Posted: Wed May 23, 2007 6:27 am
by Sergey Tkachenko
Can you give me a sample of SQL statement inserting multiline text in table? Sorry, my knowledge of SQL is very basic.

Yes. Just call RegisterClasses([TEdit, TCheckbox]) before loading.