StringFind
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 01:00 PM

Syntax

Public Function StringFind(stringValue As String, subString As String, Optional startPos As Integer = 1) As Integer

Description

This function is used to search for a sub string in a text of string.

Parameters

Key Description 
stringValue String to make searching,value of type String.
subString Searched sub string,value of type Srting.
startPos Start searching position to end string,value of type Integer.

Return value

Returns the position of sub string in a text string. If string not found returns 0.

Sample

Public Sub main()

  Dim x

  x = "1234567890"

AlertMessage stringFind(CSTR(x), "a",1) 'Alert Message will return zero

End Sub

See Also


Back to VTL Client Script 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