mike
|
| Posted: 05/20/2003, 2:52 PM |
|
Testing techniques but can't get this one.
Upon a condition, I want to alter color of output in a grid.
All OK except for dates. which return a Cdate error in Classes.asp at line 877. What / how do I treat this code to change the date colors too?
In the code below, which is in before show event of status_id, the dates do not render but throw the error
TIA
Mike.
Function tasks_task_name_BeforeShow() 'tasks_task_name_BeforeShow @44-D58EC925
'Custom Code @215-73254650
If Tasks.status_id.Value = "Closed" then
Tasks.status_id.Value = "<font color=GRAY>"&Tasks.Status_id.Value&"</font>"
Tasks.priority_id.value = "<font color=GRAY>"&Tasks.priority_id.value&"</font>"
Tasks.Type_id.value = "<font color=GRAY>"&Tasks.Type_id.value&"</font>"
Tasks.user.value = "<font color = GRAY>"&Tasks.user.value&"</font>"
Tasks.sdate.value = "<font color = GRAY>"&Tasks.sdate.value&"</font>"
Tasks.edate.value = "<font color = GRAY>"&Tasks.eidate.value&"</font>"
End if
'End Custom Code
End Function 'Close tasks_task_name_BeforeShow @44-54C34B28
|
|
|
 |
mike
|
| Posted: 05/20/2003, 4:14 PM |
|
Got it.
I already had the html switch on but in addition had to change the date fields datatype property to text.
|
|
|
 |
|