Knowledgebase:
ValidateParameter
Posted by Yousef Ibrahim, Last modified by Rawan Al Hourani on 30 May 2016 01:47 PM
Public Overrides Function ValidateParameter(ByVal Parameter As StringByVal Value As StringAs Boolean

This function should validate the parameters added in your LP class constructor, it should check if the value is valid or not for this parameter.
the below sample explains how to validate parameters.
It will return true if the Parameter value is valid.

Parameters

Part Description
Parameter The parameter name that is set in AddParameter method called in the constructor.value of type String.
Value the value that should be validated. Value of type Strring.

Sample

Public Overrides Function ValidateParameter(ByVal Parameter As StringByVal Value As StringAs Boolean

        Select Case Parameter

            Case "Username"

                Return Value <> ""

            Case "Password"

                Return Value <> ""

            Case "Server"

                Return Value <> ""

            Case "Port"

                Return Value <> "" And IsNumeric(Value)

            Case Else

                Return True

        End Select

    End Function

 


See Also


Back to Bridge LP API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions