Dim A
A =Date
datatable("AT",dtlocalsheet) = A
CStr DataTable("AT", dtLocalSheet)
Msgbox(A)
If datatable("AS",dtlocalsheet) = A Then
Reporter.ReportEvent micPass,"正确",""
else
Reporter.ReportEvent micFail,"错误","实际为:"+DataTable("AS",dtlocalsheet)+"期望为:"+DataTable("AT",dtlocalsheet)
End If
其中datatable("AS",dtlocalsheet)的值为2012-03-29,Msgbox(A)得到的值也是2012-03-29,但是为什么检查通不过呢?
提示信息:错误 实际为:2012-03-29,期望为:2012-03-29 失败 2012-03-29 - 10:56:57