Recent

Author Topic: TDBMemo makes me crazy  (Read 2214 times)

eara

  • Jr. Member
  • **
  • Posts: 84
TDBMemo makes me crazy
« on: April 22, 2014, 08:10:27 pm »
and at the point i thought i overcome problems with TDBMemo here are again the same....

my code:
Code: [Select]
procedure TfrmMedia.qry_NewRecord(DataSet: TDataSet);
begin
  with DataSet do begin
    FieldByName('media_type').AsString:=Settings.get_def_media_type;
    FieldByName('media_lang').AsString:=Settings.get_def_media_lang;
    FieldByName('media_tags').AsString:=Settings.get_def_media_tags;
  end;
end;
Where 'media_tags' field is bound to a TDBMemo control in my form. But when i run the code, the TDBMemo control is EMPTY!  >:(
If i Post the record from TDBNavigator then i can see the value! But not Before Post....
the other 2 fields are bound to TDBEdit controls, and values are reflected immediatly on controls.
Not the same for TDBEdit....
Tried misc methos (e.g. .Refresh, .LoadMemo, write to TDBMemo.Text instead of TField... no success....)

Any suggestions (PLZ) ?
and btw can the forum moderators create an icon where pacman hits his head 2 the wall?  I NEED IT!

kpeters58

  • Sr. Member
  • ****
  • Posts: 267
Re: TDBMemo makes me crazy
« Reply #1 on: April 22, 2014, 09:40:35 pm »
Which database? Which access layer (SQLDB?)?
Lazarus 2.0.4/FPC 3.0.4/Win 64

eara

  • Jr. Member
  • **
  • Posts: 84
Re: TDBMemo makes me crazy
« Reply #2 on: April 22, 2014, 09:49:12 pm »
sorry,
Lazarus 1.2.0
TSQLConnector/ConnectorType MySQL5.5
MySQL Community Server 5.5.37


LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: TDBMemo makes me crazy
« Reply #3 on: April 23, 2014, 07:01:24 am »
This was already fixed in TRUNK (2.7.1). See bug #25648

eara

  • Jr. Member
  • **
  • Posts: 84
Re: TDBMemo makes me crazy
« Reply #4 on: April 23, 2014, 01:36:47 pm »
thanks man.
It looks 2 complicated for me now to work with 2.7.1, (i tried twice and didn't make it, i need support on this...)

 

TinyPortal © 2005-2018