Recent

Author Topic: First line in DBMemo  (Read 169 times)

madref

  • Hero Member
  • *****
  • Posts: 700
  • ..... A day not Laughed is a day not Lived !!
    • Nursing With Humour
First line in DBMemo
« on: July 18, 2019, 09:49:43 pm »
I have this form with a TPageControl with different TTabsheets (See Def.png).
I fill them from a database and this works all like a charm.


But the fields (DBM_Opmerking1, 2 & 3) are always on the last line of the memo field (See Form.png)
In another part of my program is also a DBMemo-field which is filled from the database and when I use this code

Code: Pascal  [Select]
  1. DBM_Licentie.SelStart := 0;
It goes to the first line of the memo field.


But when I use
Code: Pascal  [Select]
  1. DBM_Opmerking1.SelStart := 0;
It does not work.
Can anyone explain to me why this does not work?

« Last Edit: July 18, 2019, 09:51:50 pm by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 2.0.2 / FPC 3.0.4
Lazarus Trunc / FPC 3.0.4
Mac OS X Mojave