Jump to content

UniDBGrid Memo


epos4u

Recommended Posts

Hi,

 

i am trying to load a memo field from DBisam to a UniDBGrid

 

see pic attached in next post as i forgot to attach

 

the memo is not inserting new line in epos and price field

 

i want it to show

BLT Salad

++ Oatcakes

++ Brown Toasty

 

its showing

BLT Salad ++ Oatcakes ++ Brown Toasty

 

 

and the price to be

6.15

1.20

0.36

 

any help would be great as i am trying my best

 

Thank you

Link to comment
Share on other sites

Hi;

 

You can use HTML code in uniGUİ. Try <br/> before +. You can try to add your db like "BLT Salad <br/> ++ Oatcakes <br/> ++ Brown Toasty" or you can try write a code which detecting some sentences and show them different.

 

For example:

procedure TMainForm.Table1SpeciesNoGetText(Sender: TField; var Text: string;
  DisplayText: Boolean);
begin
   Text := stringReplace(Sender.AsText, '++', '<br />++', [rfReplaceAll]);
end;
Link to comment
Share on other sites

 

Hi;

 

You can use HTML code in uniGUİ. Try <br/> before +. You can try to add your db like "BLT Salad <br/> ++ Oatcakes <br/> ++ Brown Toasty" or you can try write a code which detecting some sentences and show them different.

 

For example:

procedure TMainForm.Table1SpeciesNoGetText(Sender: TField; var Text: string;
  DisplayText: Boolean);
begin
   Text := stringReplace(Sender.AsText, '++', '<br />++', [rfReplaceAll]);
end;

Thank you for your reply, will try something different, would be better if the dbgrid had word-wrap

 

thank you Bugra Yener Sahinoglu

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...