contents   index   previous   next



QueryStringCount

 

Return Type: Integer

 

Returns the number of occurrences of a parameter within a Query String.

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)    

    iCount = WebX1.QueryStringCount    

    For x = 1 to iCount        

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

    Next x

End Sub

 

The output in the Immediate Window would be:

 

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

ReturnData