Lazarus

Programming => Databases => Topic started by: osvaldo-tcf on December 12, 2007, 03:06:39 pm

Title: "DBMemo - Read Only?" Please, anyone with that in
Post 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
Title: RE: DBMemo - Read Only?
Post by: jozagulikoza on December 12, 2007, 03:44:13 pm
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.
Title: RE: DBMemo - Read Only?
Post by: osvaldo-tcf on December 12, 2007, 04:14:42 pm
Ok!

DBEdit is well, but BDMemo not.

LFM =>
Quote

      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
Title: RE: DBMemo - Read Only?
Post by: osvaldo-tcf on January 07, 2008, 02:06:02 pm
Hi, all.
Anybody with TDBMemo in Linux with Lazarus 0.95 ????
Title: RE: DBMemo - Read Only?
Post by: felipemdc on January 07, 2008, 02:19:40 pm
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 ...
Title: RE: DBMemo - Read Only?
Post by: osvaldo-tcf on January 08, 2008, 06:18:46 pm
Hi. I'm using FBDataset + UIB 2.1, it don't has memo field and with blob type 1 it is read only too!
Title: "DBMemo - Read Only?" Please, anyone with that in
Post by: tatamata on January 25, 2008, 08:38:37 am
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
Title: "DBMemo - Read Only?" Please, anyone with that in
Post by: osvaldo-tcf on January 25, 2008, 02:27:28 pm
Are you using GTK2 ?
Title: "DBMemo - Read Only?" Please, anyone with that in
Post by: tatamata on January 25, 2008, 03:34:44 pm
no.
Title: "DBMemo - Read Only?" Please, anyone with that in
Post by: osvaldo-tcf on January 25, 2008, 03:42:07 pm
There is a bug with that. is the problem!
Thanks.
TinyPortal © 2005-2018