Utilities.StrToCurr Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


The Utilities.StrToCurr method converts the string Str that represents a floating-point value to the corresponding Currency value. A valid string must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional ā€œEā€ or ā€œeā€ followed by a signed integer. Leading and trailing blanks are ignored. Thousand separators and currency symbols are not allowed in the string. If the source string is invalid, StrToCurr raises an exception.



Str [in]    Required    String    
Result Variant

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the string to be converted to a Currency value.

Result Value

The Variant value storing the given value converted to a Currency value.


This method is obsolete. It is supported for backward compatibility only. To convert a string to a currency value, use the aqConvert.StrToCurrency method.

See Also

StrToCurrency Method
CurrencyToStr Method
CurrencyToFormatStr Method
StrToFloat Method
Format Method

Highlight search results