3. Mai 2017 15:48
3. Mai 2017 16:07
Item.SETFILTER(Description,'*  *');WHILE STRPOS(Item.Description,'  ') > 0 DO 
  Auf welcher Position beginnt die Leerzeichenkette? 
  Mittels DELSTR(Item.Description,Pos+1,1) das zweite Leerzeichen löschen
END; // bis keine Kette, sondern nur noch einzelne Leerzeichen übrig sind3. Mai 2017 16:14
NewString := Regex.Replace(String,'\s{2,}',' ',RegexOption.Singleline);3. Mai 2017 16:18
 .
 .3. Mai 2017 16:29
4. Mai 2017 14:17
 
 4. Mai 2017 15:40
Item.Description := ReplaceString(Item.Description,'  ',' ');
ReplaceString(String : Text;FindWhat : Text;ReplaceWith : Text) : Text
WHILE STRPOS(String,FindWhat) > 0 DO
  String := DELSTR(String,STRPOS(String,FindWhat)) + ReplaceWith + COPYSTR(String,STRPOS(String,FindWhat) + STRLEN(FindWhat));
EXIT(String);