Hi All
I want to be able to convert a string to floating point where the string is in the form
either $245.45
OR -$242.45
The first one converts OK but the second one come up with "-$242.45 is not a valid
floating point value.
The Delphi help says:
"Category
floating point conversion routines
Delphi syntax:
function StrToFloat(const S: string): Extended; overload;
function StrToFloat(const S: string; const FormatSettings: TFormatSettings):
Extended; overload;"
AND
"Delphi syntax:
type
TFormatSettings = record
CurrencyFormat: Byte;
NegCurrFormat: Byte;
ThousandSeparator: Char;"
But if I use
StrToFloat('-$242.45', NegCurrFormat)
I get a message saying "there is on overloaded version of StrToCurr that can be
used with these arguments."
Is someone able to help, please?
TIA
Mark
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi