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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...