Lasso Soft Inc. > Home

[String_FindPosition]

[String_FindPosition] takes two parameters: a string value and a -Find keyword/value parameter. Returns the location of the -Find parameter in the string parameter. The test is not case sensitive.

  • Syntax
  • Parameters
[String_FindPosition: 'String Value', -Find='Pattern']
Required Parameters
String Value The string which is to be checked.
-Find The pattern which is to be checked for in the string.
Examples

To find the location of a substring within a string:

Use the [String_FindPosition] tag. The following example finds the position of the word World within the string Blue World.

[String_FindPosition: 'Blue World', -Find='World']
Result:
6
Tag Link [String_FindPosition] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type Integer Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft