Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to test ASP parameters in VFP components

Status
Not open for further replies.

rlawrence

Programmer
Sep 14, 2000
182
US
I've been doing a fair amount of work calling VFP components in traditional ASP web applications. One thing I keep running up against is the need to pass the ASP components (Request, Response, and Session) as parameters to my VFP components. Passing the parameters is not a problem. The problem is testing the new methods before having to rebuild my DLL and load it into the server (IIS) environment. That is REALLY cumbersome. Furthermore, if something goes wrong, I can't use the VFP debugger to see what is going on.

Currently, I am working on generic routines to load form data into a custom container, and to take the data from that custom container and make it available to an HTML form. But I'm using VFP7--which doesn't fully support the "collection" object. So, I have no way to test my routines on the Request.Form collection. I've looked into creating my own custom "collection" component to mimic the ASP form collection, but the results will not work the same way (or use the same syntax).

Has anyone out there worked out a good way to test these ASP components in VFP? Does anyone know of a way to create this kind of collection so I can, at least, mimic the ASP component for testing purposes?

Thanks in advance,
Ron
 
VFP 7 handles COM collections just fine. It just doesn't have native collections. So you should be able to work with the ASP collections.

Tamar
 
Hi Tamar,

Thanks for responding. I've already successfully made use of the ASP components within VFP. I'm looking for a way to mimic those components so I can test my new development while still in the VFP environment... before rebuilding.

Another thought would be to instantiate COM collection from another DLL. Have you any thoughts on that?

At first, I tried to use ASP.DLL, but that didn't work without actually installing ASP on my development machine. I've been avoiding that, but maybe that's the most direct course. Still, I'm not sure that will get me where I am trying to go anyway. So, I was hoping to find others who have dealt with the situation.

Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top