Get unique strings in a sVector

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

makas12
Posts: 10
Joined: Tue Jun 30, 2015 12:03 pm

Get unique strings in a sVector

Postby makas12 » Wed Feb 24, 2016 8:17 am

Hello - I am using Eviews 8.1. I have a sVector allSeries and I want to be able to pull unique strings and store it in an another sVector. I wrote this:

Code: Select all

string comboStr = @wjoin(allSeries) string uniqueList = @wunique(comboStr) svector uniqueSVector = @wsplit(uniqueList)
However, I get this error "@wjoin is illegal or reserved name in "STRING COMBOSTR = @WJOIN(ALLSERIES".

Is @wjoin not supported in 8.1? Any ideas other than looping through the sVector to do this? Thanks,

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13584
Joined: Tue Sep 16, 2008 5:38 pm

Re: Get unique strings in a sVector

Postby EViews Gareth » Wed Feb 24, 2016 9:47 am

In EV8 you'll have to loop through. Or upgrade to EV9 :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests