Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Com object not working as expected
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
VFP Com object not working as expected
Miscellaneous
Thread ID:
00354504
Message ID:
00354504
Views:
54
I'm not sure what I'm missing here but...

I wrote a simple Class definition to query a table, and bundle the results into an HTML table format. The object puts the resulting HTML into a property of the object named cHtml. I compiled it as a Dll. An ASP page then references the object with the following code:

<% oServer = CreateObject('WebData.AspTools')
oServer.ShowTable()
Response.Write(oServer.cHtml) %>

I tested it under VFP 6, SP3 using the following syntax:

oServer = CreateObject('WebData.AspTools')
oServer.ShowTable()
? oServer.cHtml)

This yields the results I want to see in my ASP file. However, when I try the ASP code, I don't get any results. The server I'm testing it on isn't the one I develop on, so I ran RegSvr32 WebData.Dll to register the dll before I tested it. Any ideas on what to look at? I know the code is right, I can run it without any problems within VFP, just not from an ASP page.
Oct 31 = Dec 25
Next
Reply
Map
View

Click here to load this message in the networking platform