Knowledgebase:
RightString
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 16 July 2017 02:28 PM

Syntax

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

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

Parameters

Key Description
varString String expression from which rightmost are returned.
lengthVar Numeric expression indicating how many characters to return, a value of type Integer.

Return value

Returns the right side of a string.

Exceptions

Error number Condition
5 lengthVar < 0

Sample

Public Sub main()

Dim Str 

Dim Result 

str= "VertexFX"

Result = RightString(str,2)

AlertMessage(Result)' it will return FX

End Sub


See Also


Back to VTL Client Script Index

(1 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