If anyone trys to load up a widget with the calender in the Default Theme and get the error regarding to invalid type CDate.
Here's is something for Desktop X to look into.
This problem is caused by the regional settings on the client computer.
Luckily, I know just enough VB language to know why this is happening.
If anyone tries to use MonthName in the actual VB code, it will return the name of the month specified by the client machine.
For example, if you tries the function MonthName in a computer with the region language setting set to chinese.
Then the MonthName will be The name of the month in CHINESE and NOT "January" etc.
AND CDate doesn't convert a Chinese Month into a date object. Thus, if you want to fix this problem you have to implement your own function for the MonthName.
Here's an example.
Function CMonthName(intMonth)
Select Case (intMonth)
Case "1"
CMonthName = "January"
Case "2"
CMonthName = "February"
Case "3"
CMonthName = "March"
Case "4"
CMonthName = "April"
Case "5"
CMonthName = "May"
Case "6"
CMonthName = "June"
Case "7"
CMonthName = "July"
Case "8"
CMonthName = "August"
Case "9"
CMonthName = "September"
Case "10"
CMonthName = "October"
Case "11"
CMonthName = "November"
Case "12"
CMonthName = "December"
Case Else
CMonthName = ""
End Select
End Function
Then Replace Every concurrent MonthName with CMonthName or what ever function you called in your new function.
This will fix the problem regarding to this issue.
Alternatively, just set the regional language to English. (unfortunately, I dunno how).
This is also a note to all the people out there who wants to Develop a calender system. Please don't use MonthName Function as it is client machine dependent, unless you want to display the MonthName for different language. So Watch out.
Unless StarDock is willingly to fix this bug. I suggest you to stay out of the function MonthName.