Jump to content

Recommended Posts

Posted

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

Posted

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;
Posted

 

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

Posted

Hi, thank you for quick reply

 

i was looking for #13 to replace, will try a different method, as with the price in a memo field like

12.90

12.10

3.50

 

will still show up as 12.90 12.10 3.50

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...