• Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX

Overridden Methods

home/Knowledge Base/Technical Support/API/BackEnd API's/VBL/VertexFX Bridge LP API/VertexFX Bridge LP API Help/Overridden Methods/ValidateParameter

ValidateParameter

38 views 0 Updated on December 16, 2021 hybrid-solutions

Syntax

Public Overrides Function ValidateParameter(ByVal Parameter As String, ByVal Value As String) As Boolean

Description

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 String, ByVal Value As String) As 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

  • Initialize
  • Connect
  • Disconnect


Back to Bridge LP API Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  Initialize

ValidateBO  

About
VertexFX Trader has a closed-loop trading structure with BackOffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2024 hybridsolutions.com. All Rights Reserved.