Scripting: Basic "Replace"

Version 1

    The following script can be used as a template for the "Replace" functionality..

     

    This following script will parse scanned data and replace any "#" with "*". This script is triggered by the on barcode event

     

    Script( Replace )

     

    String( sData )
    Number( nScan )
    Activate( On_Input, sData, nScan )
        Scan_String( sData, 0 )

        sData = String_Replace( sData, "#", "*", FALSE )
        Scan_String( sData, 0 )
        Return