problem with @makevalidname
Posted: Fri Jan 31, 2025 10:00 am
Hi there,
I'm getting a problem with @makevalidname. It cleans the original string as expected, but it adds an "01" at the end of string returned.
For example:
string cleanName = @makevalidname("CSR#(USWOGGG%R,N)")
is returning "CSR__USWOGGG_R_N_01" even though eviews automatically names the series "CSR__USWOGGG_R_N_".
When I try to rename the series CSR__USWOGGG_R_N_ with another name, I get an error message since I'm searching with cleanName "CSR__USWOGGG_R_N_01" which is not found in the workfile.
I've attached the file with just the series.
I'm getting a problem with @makevalidname. It cleans the original string as expected, but it adds an "01" at the end of string returned.
For example:
string cleanName = @makevalidname("CSR#(USWOGGG%R,N)")
is returning "CSR__USWOGGG_R_N_01" even though eviews automatically names the series "CSR__USWOGGG_R_N_".
When I try to rename the series CSR__USWOGGG_R_N_ with another name, I get an error message since I'm searching with cleanName "CSR__USWOGGG_R_N_01" which is not found in the workfile.
I've attached the file with just the series.