Hi friends,
i have small problem with lotus script please see the code below error is type mismatch.
i am getting the document handle .
Here i am writing multiple if conditions all are date/time fields
so i tried cdat(vwdoc.c_date1(0) <> “” & cdat(vwdoc.c_date2(0) = “” ) and tried to convert to string also using cstr() but every time the same error i am fed up with this screen whole this evening any body pleae help me out
If Not vwdoc Is Nothing Then
If ((vwdoc.c_date1(0)) = "") Then
Call doc.ReplaceItemValue("status","SPEC")
End If
If (((vwdoc.c_date1(0)) <> "" ) & ((vwdoc.c_date2(0))="" )) Then <---- on this line error type mismatch ---->
Call doc.ReplaceItemValue("status","TEND")
End If
If ((vwdoc.c_date2(0)) <> "" ) & ((vwdoc.bids(0))="" ) Then
Call doc.ReplaceItemValue("status","BIDS")
End If
If ((vwdoc.bids(0)) <> "") & ((vwdoc.c_date3(0))="") Then
Call doc.ReplaceItemValue("status","NEG")
End If
If ((vwdoc.c_date3(0)) <> "") & ((vwdoc.c_date4(0))="") Then
Call doc.ReplaceItemValue("status","EPC")
End If
If ((vwdoc.c_date3(0)) <> "") & ((vwdoc.c_date4(0))="") Then
Call doc.ReplaceItemValue("status","EPC")
End If
If ((vwdoc.c_date4(0)) <> "") &( (vwdoc.epc(0))="") Then
Call doc.ReplaceItemValue("status","EPA")
End If