Recent

Author Topic: "DBMemo - Read Only?" Please, anyone with that in  (Read 9434 times)

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
"DBMemo - Read Only?" Please, anyone with that in
« 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

jozagulikoza

  • New Member
  • *
  • Posts: 12
RE: DBMemo - Read Only?
« Reply #1 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.

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
RE: DBMemo - Read Only?
« Reply #2 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

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
RE: DBMemo - Read Only?
« Reply #3 on: January 07, 2008, 02:06:02 pm »
Hi, all.
Anybody with TDBMemo in Linux with Lazarus 0.95 ????

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: DBMemo - Read Only?
« Reply #4 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 ...

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
RE: DBMemo - Read Only?
« Reply #5 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!

tatamata

  • Hero Member
  • *****
  • Posts: 787
    • ZMSQL - SQL enhanced in-memory database
"DBMemo - Read Only?" Please, anyone with that in
« Reply #6 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

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
"DBMemo - Read Only?" Please, anyone with that in
« Reply #7 on: January 25, 2008, 02:27:28 pm »
Are you using GTK2 ?

tatamata

  • Hero Member
  • *****
  • Posts: 787
    • ZMSQL - SQL enhanced in-memory database
"DBMemo - Read Only?" Please, anyone with that in
« Reply #8 on: January 25, 2008, 03:34:44 pm »
no.

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
"DBMemo - Read Only?" Please, anyone with that in
« Reply #9 on: January 25, 2008, 03:42:07 pm »
There is a bug with that. is the problem!
Thanks.

 

TinyPortal © 2005-2018