Hi
I have a string named 'lastqtr' that is derived from a dialogue box wherevy the user inputs the last date for their data in the format 'mm/dd/yy'. So, for example:
string lastqtr = 11/01/2014
I was wondering how I can then use this string to set the sample size of my workfile? I have tried stuff like this, but it doesn't seem to work:
smpl @first @lastqtr-20
I think this is because that EViews isn't recognising the string lastqtr as being in date format.
Any help would be greatly appreciated.
Thanks
Using a string as the last date in sample
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: Using a string as the last date in sample
Code: Select all
string lastqtr = "11/01/2014"
smpl @first {lastqtr}-20Re: Using a string as the last date in sample
Many thanks, Trubador!
Who is online
Users browsing this forum: No registered users and 2 guests
