Ask a Question

Conversion of currency in testcomplete javascript

SOLVED
abishekhari007
Contributor

Conversion of currency in testcomplete javascript

i have a dollar value as "$400,000" is need to convert this is as 400000, without dollar and comma, how do i achieve it through testcomplete using javascript

2 REPLIES 2
Marsha_R
Community Hero

You can use methods from aqString to reformat.  There are examples in javascript.

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/index.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Thanks for the response
instead i have used aqConvert.CurrencyToFormatStr Method

 

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqconvert/currencytoformat...

cancel
Showing results for 
Search instead for 
Did you mean: