Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP - Request Object
Message
De
21/02/2000 14:12:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00334833
Message ID:
00334943
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform