contents   index   previous   next



QueryString

 

Return Type: String

 

Returns the value of the specified parameter in the Query String. If the parameter does not exist in the Query String, a blank ("") is returned.

 

For example, if the URL is http://www.mydomain.com/prod.html?N=Eng&Cyl=4&N=Gas

and the application source code is:

 

Private Sub WebX1_FileRequest (Index As Integer, FileName As String)

    Debug.Print WebX1.QueryString (Index, "N")    

    ' The next line will force a blank line between    

    ' Eng and Gas since the Parameter Blah does not    

    ' exists in the Query String.

    Debug.Print WebX1.QueryString (Index, "Blah")    

    Debug.Print WebX1.QueryString (Index, "Cyl")

End Sub

 

The output in the Immediate Window would be:

Note: Index is the connection number returned by WebX

 

Notes: QueryString and QueryStringCount can be used with the both the CallFunction and FileRequest events.

QueryStringCount