wdrop function

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

wdrop function

Postby jthodge » Fri Dec 14, 2012 10:02 am

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?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: wdrop function

Postby EViews Glenn » Fri Dec 14, 2012 3:06 pm

You need the wildcard:

Code: Select all

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests