on 09-11-2014 3:59 PM
Hi,
For some reason this piece of code has stopped worked:
var date = APPLICATION.getInfo().dateNowInternalFormat;
currentYear = Convert.subString(date, 0, 4);
currentMonth = Convert.subString(date, 4, 6);
This is the error message I get for the rows that starts with currentYear and currentMonth:
Couldn´t resolve reference to Member 'subString'
Couldn´t resolve reference to Variable 'Convert'
Any idea what I´m missing?
Thanks,
Anders
easy 😉
the code should be:
var date = APPLICATION.getInfo().dateNowInternalFormat;
var currentYear = Convert.subString(date, 0, 4);
var currentMonth = Convert.subString(date, 4, 6);
you forgot "var".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.