|
STRING DELETEName:
where <sout> is the name of the resulting string; <sorg> is the name of the original string; and <slist> is the name of the original string. You specifiy the characters you want to delete by defining the <slist> string. That is, <sorg> will be checked against each character in <slist>.
In this case, STR will now contain the the string with the characters removed rather than the original string.
you need to do
LET STRING SLIST = @ LET SOUT = STRING DELETE SORG SLIST The name on the left hand side of the equal sign may be a previously existing string. However, if it is a previously existing parameter, variable, or matrix name, an error will be reported and the requested string will not be created.
let string stin = abcdefgabcdefg let string slist = cde let stout = string delete stin slist print stin stoutThe following output is returned FUNCTIONS-- STIN --abcdefgabcdefg STOUT --abfgabfg
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 10/10/2018 |