Page 1 of 1

how to test the type of a variable

Posted: Tue Jun 21, 2016 5:42 am
by melamel
Hello,
I want to test the type of a program argument to see if it's a date or not, just to prompt a message error if it's not a date. How can I do this please ? which function can give me the type of a variable?
Thank you in advance !

Re: how to test the type of a variable

Posted: Tue Jun 21, 2016 6:08 am
by EViews Gareth
Use @dateval and see if it returns NA

Re: how to test the type of a variable

Posted: Wed Jun 22, 2016 2:41 am
by melamel
Thank you !