Promotic
WikipediaLinkedInYoutubeTwitterFacebook

StringFind - method of object Pm

Description:
Returns the position of the first character of the searched string
Syntax:
StringFind(sValue As String, sSearch As String, nStart As Long) As Long
Calling:
nRes = Pm.StringFind(sValue, sSearch, nStart)
Parameters:
sValue(String) Source string expression.
sSearch(String) Searched string
nStart(Long) The position of character in searched string efining the start of the search
Return Values:
-1 - the string was not found
n - the position number of found string (zero-based index)
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example:
Dim sVal, nRes
sVal = "PROMOTIC is fun!"
nRes = Pm.StringFind(sVal, "is", 0)
  ' nRes contains 9
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- StringFind
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice