on 12-04-2006 3:35 PM
At the top of p. 25 of Tutorial #3, the code block says to add the line:
(a)
wdContext.currentContextElement().setBirthday(new Date(0)));
When I do this, an error message results saying that setBirthday takes a string argument.
So I change the above line to:
b)
wdContext.currentContextElement().setBirthday(new Date(0)));
and the error message goes away.
What's going on here? Is (a) a mistake in the tutorial, or have I overlooked something somewhere ?
Thanks
Dave
This was just a typo in my post here - I have 2 parens in the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep it seems there is an error on page 12. If you import the attached source and if you check the simple type BirthDay in the dictionary (in your studio), you can see that the build-in type is set to date and not to string. It is also expected to use a date type for a birthday.
Regards,
Christophe
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.