Lazarus
Programming => Databases => Topic started by: osvaldo-tcf on December 12, 2007, 03:06:39 pm
-
My application has a dbmemo linked to a field (string field). I don't can insert data into dbmemo.
Lazarus 0.9.25
-
Just to be shure;
you must fill DataSource and DataField properties of dbmemo coomponent.
Dataset must be editable and the reandonly property of memo field in dataset must be set to false.
-
Ok!
DBEdit is well, but BDMemo not.
LFM =>
object DBMemo1: TDBMemo
Left = 358
Height = 90
Top = 19
Width = 150
DataField = 'AL_NROMAT'
DataSource = dsAluno
Lines.Strings = (
'DBMemo1'
)
TabOrder = 16
end
Lazarus svn 13278M on Linux - Ubuntu 7.10
-
Hi, all.
Anybody with TDBMemo in Linux with Lazarus 0.95 ????
-
Which dataset are you using? Maybe it's a problem on the dataset. Maybe it requires that the field be of type MEMO and not just STRING ...
-
Hi. I'm using FBDataset + UIB 2.1, it don't has memo field and with blob type 1 it is read only too!
-
Osvaldo,
As I can remember, I had similar problem in past with PostgreSQL and Firebird. As I remember, it was due the field type in a database. I had to change Text type to Varchar in PostgreSQL and something similar in Firebird, in order to be able to write into the field. Be sure that the field type is Varchar, not some other string type.
Regards,
Zlatko
-
Are you using GTK2 ?
-
no.
-
There is a bug with that. is the problem!
Thanks.