Allows user to convert numbers as currency format by their country code.
Smart code
Syntax
getCurrencyFormat(variablename,amount,countrycode)
Parameters
- variablename (Required) – Name of the variable to store the length of the given string.
- amount (Required) – Amount needs to be defined as value.
- countrycodeText (Required) – Country unique code needs to be defined.
Direct Code
Syntax
try {
var <<variable_name>>= await Orefuncs.getCurrencyFormat(<<amount>>, “<<countrycode>>”);
}
catch(ex) {
OreAlert.alert(ex.message);
}
this.setState({ spinner: false });