Utilities.StrToCurr Method

Applies to TestComplete 14.93, last modified on October 12, 2021
This method is obsolete. See the Remarks section below.

Description

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.

Declaration

Utilities.StrToCurr(Str)

Str [in]    Required    String    
Result Variant

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Str

Specifies the string to be converted to a Currency value.

Result Value

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

Remarks

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