Hello, I am having some trouble with converting strings to currency/floats.
First off I calculate monetary values at runtime and display them on a stringgrid by using FloatToStrF(<value>, ffCurrency, 10, 2).
Later I need to grab some of these values from the stringgrid and use them to calculate other values to be stored on the grid. The problem is that I am having trouble with converting the strings back into a valid floating point number (since they have a leading dollar sign and have thousands separators. Is there a function that can convert a string into some floating point format, when the string contains a currency symbol and thousands separators?
StrToCurr and StrToFloat are both out. I could write my own function to do this, but I don't want to if there is already a function to do this (no point in reinventing the wheel).
Any help would be appreciated. Please, let me know if I haven't made myself clear enough.