Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Request object from HTML form
Message
De
02/10/2000 18:19:58
 
 
À
02/10/2000 10:47:51
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00423368
Message ID:
00423807
Vues:
16
>>>I've tried the following, but VFP doesn't recognize .form as an object. I've also tried using the .Item() method, but that doesn't work either. Is the only way to do this by manually iterating through the collection and creating my own array of field names? Or passing in the string of fields=values delimited by "&"? Both these methods seem to defeat the purpose of the collection.
>>>
>>>I also can't access the .Count property of the collection.
>>
>>>for each loItem in toRequest.Form
>>> toRequest.Form( loItem).Item() + ;
>>
>>This is incorrect usage of the collection. The Forms collection takes a name or an index, not an object. To reference the item in the form, just use loItem.
>
>Doesn't matter in this context, loItem will just be allocated the key name for each successive item. This should still work.
>

Ok, the syntax syntax threw me into remembering (incorrectly) that the Form collection was a collection of objects, not string values.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform