hyme
Jul 17th, 2000, 11:54 AM
Howdy!
I'm trying to figure out how to use DHTML. When I get an error with this code: WHY?
Private Function Store_onclick() As Boolean
PutProperty BaseWindow.Document, "Property1",TxtField1.Value
End Function
I get a Type Mismatch error.
DHTML.bas
Public Sub PutProperty(objDocument As HTMLDocument, strName As String, vntValue As Variant, Optional Expires As Date)
objDocument.cookie = strName & "=" & CStr(vntValue) & _
IIf(CLng(Expires) = 0, "", "; expires=" & Format(CStr(Expires), "ddd, dd-mmm-yy hh:mm:ss") & " GMT") ' & _
End Sub
Thanx
I'm trying to figure out how to use DHTML. When I get an error with this code: WHY?
Private Function Store_onclick() As Boolean
PutProperty BaseWindow.Document, "Property1",TxtField1.Value
End Function
I get a Type Mismatch error.
DHTML.bas
Public Sub PutProperty(objDocument As HTMLDocument, strName As String, vntValue As Variant, Optional Expires As Date)
objDocument.cookie = strName & "=" & CStr(vntValue) & _
IIf(CLng(Expires) = 0, "", "; expires=" & Format(CStr(Expires), "ddd, dd-mmm-yy hh:mm:ss") & " GMT") ' & _
End Sub
Thanx