Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a process function with a parameter
Message
 
To
25/09/2002 19:22:56
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00704513
Message ID:
00704528
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform