contents   index   previous   next



QueryStringMethods: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_FileRequestEvents:FileRequest(Index As Integer, FileName As String)

 

Debug.Print WebX1.QueryStringMethods: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.QueryStringMethods:QueryString(Index, "Blah")

 

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

 

End Sub

 

 

The output in the Immediate Window would be:

 

 

Note: Index is the connection number returned by WebX

 

 


Methods:QueryStringCount