Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-02

Stripping Thousand Separators from form fields

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to ADTEC Pty Ltd
What is the easiest way to strip thousand separators from text forms? In PHP I use Regex expressions but I can't seem to find anything like that in Free Pascal/Lazarus.

Something along the lines of

S:=StringReplace(S,ThousandSeparator,'',[rfReplaceAll]);

Should do it.

Michael.

Reply by email