ParseString Method



 
The ParseString method transforms the usual currency notation into a long value.


Syntax

    [currency=] CurrencyFormatter.ParseString(str)
    
Parameters
    str String to format.
Return Value
    Returns a Currency value that contains the amount.
Remarks
    None.
Examples
    The following example formats and reformats a value.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mycfm = SiteKiosk.Plugins("SiteCash").CreateCurrencyFormatter();
    mystr = mycfm.Format(10, 1);
    alert(mycfm.ParseString(mystr));
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top