dhodgdon
Posts: 80
|
| Posted: 04/20/2005, 12:23 PM |
|
Yes Software provided great support enabling this format for me. I wanted to enter this as a separate topic to aid others who may search for ddd and dddd format help. The work around required a new DatePicker.ccl which the support group sent me. Since there is no way to attach a file to these posts, I will send you the file if you send me a PM that includes your email address. I suspect that Yes Software support will be able to provide it to you if you contact them and reference support case #983912341.
The work around is a three step process. Step 1 & 2 require changes to the Common.asp file. Step 3 installs a new DatePicker.ccl
Step 1. To class clsCCSDateConstants -> Private Sub Class_Initialize() function add
...
DateMasks("ddd") = 0
DateMasks("dddd") = 0
End Sub
Step 2. To CCParseDAte function add another CASE operator:
...
Case "ddd", "dddd"
Dim DayArray, DayNumber, DayName
DayNumber = 0
DayName = UCase(DatePartStr)
If MaskPart = "ddd" Then _
DayArray = CCSDateConstants.ShortWeekdays _
Else _
DayArray = CCSDateConstants.Weekdays
While DayNumber < 6 AND UCase(DayArray(DayNumber)) <> DayName
DayNumber = DayNumber + 1
Wend
If DayNumber = 6 Then
If UCase(DayArray(6)) <> DayName Then _
Err.Raise 4000, "Common Functions. ParseDate function","Mask mismatch."
End If
Step 3. Copy the new DatePicker.ccl to ...\CodeChargeStudio\Components\CodeTemplates\Common\ folder (just in case back up the old file).
After completing these three steps, restart CCS and regenerate the project.
_________________
Regards,
David Hodgdon
|
 |
 |
|