Page 1 of 1

wdrop function

Posted: Fri Dec 14, 2012 10:02 am
by jthodge
I'm running across a problem in trying to delete a string containing an underscore symbol from another string using the @wdrop function.

For example, the following code

Code: Select all

alpha teststr = @wdrop("ABC_DEF","_DEF")
returns the original string "ABC_DEF".

What am I doing wrong? Why won't the @wdrop function drop "_DEF"? Do I have the syntax correct?

Re: wdrop function

Posted: Fri Dec 14, 2012 3:06 pm
by EViews Glenn
You need the wildcard:

Code: Select all

alpha teststr = @wdrop("ABC_DEF","*_DEF")