Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a process function with a parameter
Message
 
À
25/09/2002 19:22:56
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00704513
Message ID:
00704528
Vues:
19
This message has been marked as the solution to the initial question of the thread.
Henry,
You can either add an additional parameter to your URL:
http://localhost/wcApp/wc.dll?wwProcess~GetCities~NY.
You can read this parameter in your GetCities function by:
lcCity = REQUEST.Querystring(3)

or if you are using a form that is submitted to the function have a list box or text field with a name like: txtCity and then use lcCity = REQUEST.FORM("txtCity")

Hope this helps,
-Mark


>Hi,
>
>I would like a hyperlink to call a function in a process with a parameter.
>
>Say I need all cities in a state. How can I send 'NY' to function GetCities in the hyperlink shown below ?
>
>http://localhost/wcApp/wc.dll?wcprocess~GetCities
>
>Note: Many hyperlinks will be generated as a result of another query; hence the need for hard-coding.
>
>Thanks
>
>Henry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform