Trim strips blank characters (spaces and control characters) at the beginning and end of S and returns the resulting string.
Trim is working correctly. You should read the documentation before saying it is not working.QuoteTrim strips blank characters (spaces and control characters) at the beginning and end of S and returns the resulting string.https://www.freepascal.org/docs-html/rtl/sysutils/trim.html
@marcov Thanks howto remove all space in this word ' ha ha h a 'thank again
Try DelSpace:https://www.freepascal.org/docs-html/rtl/strutils/delspace.html
Code: Pascal [Select] showmessage(StringReplace('Ha h a h a h ah a',' ','',[rfReplaceall, rfIgnoreCase]));
Why would you use Lazarus trunk in combination with fpc trunk (you sig says you do)?Especially given the questions you ask here, which indicates you are a novice.Bart