Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP - Request Object
Message
From
21/02/2000 14:12:23
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00334833
Message ID:
00334943
Views:
19
Michael, Scott:

>I do not know if VFP's "For Each" can iterate through the request collection but if it can you should be able to use

You are right, this works. The key is that the FOR EACH is accessing something called the _NewEnum method (its built into COM collections apparently:
http://msdn.microsoft.com/workshop/server/asp/comtutorial.asp )

Here is a method of a VFP COM server that does what Scott is looking for:


LPARAMETERS tc_request
LOCAL lc_string, x
lc_string = ""

FOR EACH x IN tc_request.form
lc_string = lc_string + x + ": "+tc_request.form(x).item()+"<br>"
ENDFOR

RETURN lc_string


This will return the name of the form control, and its value in a list

HTH,
Bill
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform