Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looping asp.request.forms object
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00198536
Message ID:
00198596
Views:
18
>I am trying to "query" the asp object for input types that have names that map to a vfp table.
>
>The idea is to loop through ASP's request.forms object, evaluate the name of the object to see if it matches my table (m.cust_name). If so, gather that value.
>
>I want a generic way to do this. That is why i'm not just doing this.
>m.cust_name = request.forms("m.cust_name").item
>....
>Gather memo memvar

In that case, the first approach will work, except that item is an object ref, and the value of the name property may not be a legal field or memvar name.

The question now becomes how are you reaching the ASP's request.forms object; you've somehow got to be instancing it in VFP. It exists outside of VFP in the executing ASP script.

I'd take a look at the Request Object/Form collection entry in the MSDN to see the exact behavior and available property set for the Form collection. There is no item property of the Form collection; the index of the form element is numeric.

>
>Does this help?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform