Einzelnen Beitrag anzeigen

Benutzerbild von Jakob Ullmann
Jakob Ullmann

Registriert seit: 17. Feb 2007
218 Beiträge
 
Lazarus
 
#4

Re: [PascalScript 3.0] 3 / 2 = 1 ????

  Alt 22. Okt 2008, 17:12
Ich hab das Problem jetzt gelöst, durch Zusatz von RegExpr.

Delphi-Quellcode:
      RE := TRegExpr.Create;
      ...
      RE.Expression := '([0-9]*)';
      expression := RE.Replace(expression, '$1.', True);
      expression := StringReplace(expression, '..', '.', [rfReplaceAll]);
      ...
      RE.Free;
Weiß zwar nicht, wieso da dann 3.. und nicht 3. stand, aber hauptsache es funktioniert.
Jakob
  Mit Zitat antworten Zitat