Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Utility Functions

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Utility Functions/LeftString

LeftString

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

Syntax

Public Function LeftString(varString As String, lengthVal As Integer) As String

Description

This function is used to return a string containing a specified number of characters from the left side of a string.

Parameters

Key Description
varString String expression from which leftmost are returned
lengthVal Numeric expression indicating how many characters to return,value of type Integer


Return value

Returns a left side of string.

Exceptions

Error number Condition
5 lengthVar <0

Sample

Public Sub main()Dim Str Dim Result str= "VertexFX"Result = LeftString(str,3)AlertMessage(Result)' it will return VerEnd Sub

See Also

  • JoinArray
  • IsNumericValue
  • IsNullValue


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  RightString

JoinArray  

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 2023 hybridsolutions.com. All Rights Reserved.