Article ID: 168053
Article Last Modified on 7/13/2004
DEFINE CLASS WristWatch AS Custom OLEPUBLIC
PROCEDURE GetTime()
RETURN Time()
ENDPROC
PROCEDURE GetDate()
RETURN Date()
ENDPROC
ENDDEFINE
<%@ LANGUAGE="VBSCRIPT" %>
<!-- Ensure that there is a space before LANGUAGE and
after "VBSCRIPT" -->
<HTML>
<HEAD>
<TITLE> VFP and ASP </TITLE>
</HEAD>
<BODY>
<H2>Active Server Pages and Visual FoxPro Automation Servers</H2>
<%Set VFPSrv = Server.CreateObject("ASPSrv.WristWatch")%>
Today's Date is <%=VFPSrv.GetDate()%>
<P>
The Current Time is <%=VFPSrv.GetTime()%>
</BODY>
</HTML>
Keywords: kbhowto kbinterop kbautomation KB168053