remove commas from a string

Started by kle2, April 24, 2025, 12:20:19 PM

Previous topic - Next topic

kle2

Hello everyone,

I have a string below pulling from a csv file.

str = '1,568,582.27'

Is there a simple function that I can use to remove all commas in it so it becomes

str = '1568582.27'

Thank you,
kle2

Found a this function works great: StrReplace(str, ",", "")

td

The best questions are the self-answered ones.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

guuzendesu

The StrClean function will work for that as well, and other characters at the same time.

SMF spam blocked by CleanTalk