mangakissa advised me to use the function format and TStrings to split my data nicely on a line, but I meet some challenges!
If I write:
HeaderTekst:= Format ('[%s]',['Land']);
I can then make a
Memo1.Lines.Add(HeaderTekst);
It is working, but I still have the brackets
Now if I write
HeaderTekst:= Format ('[%s]',['Land']);
HeaderTekst := HeaderTekst + Format ('[%50:s]',['Post']);
Memo1.Lines.Add(HeaderTekst);
Then it is going not well!
What I want to do is splitting the following line, so the elements are aligned on my TMemo:
Memo1.Lines.Add(MyReport[i,0] + ' ' + MyReport[i,1]) +' '+ MyReport[i,2]+ MyReport[i,3] + ' '+ MyReport[i,4] + ' '+ MyReport[i,5] + ' '+ MyReport[i,6] + ' '+ MyReport[i,7] + ' '+ MyReport[i,8] + ' '+ MyReport[i,9] + ' '+ MyReport[i,10] + ' '+ MyReport[i,11] + ' '+ MyReport[i,12] + ' ');
If you know some reading or tutorial, I am intersted. Until now I found this one:
http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/format.htmlNot bad at all, but not enough for a "dummy" like me!
Best Regards
Jean-Christophe