cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

instring function in ACL

ebenton
1-Newbie

instring function in ACL

I am looking for an ACL function that will do what the VB function instr() does, which searches one string to see if it contains another string; e.g., to see if "to" is in "Benton" (it is!).

Anyone?
2 REPLIES 2

See the ACL Reference PDF manual or help 638.

I just started using SUBSTR myself a few days ago. Commands include SUB, SUBSTR, GSUB, REPLACE.

John T. Jarrett CDT
Tech Writer II, Tech Pubs, ILS,Land & Armaments/Global Tactical Systems

T832.673.2147 ext 1147 | M 512.736.7031 | -
BAE Systems, 5000 I-10 West, Sealy, Texas USA 77474
www.baesystems.com


And don't forget the ever popular index() and rindex() functions in ACL.

index(s1, s2);

This function returns the position in string s1 of the first occurrence of string s2, based at 1. If the substring is not found, 0 is returned. For example, the value of index("rnotes9302", "9302") would be 7.

Thanks.

- Dave H.

Dave Helfinstine
-
Top Tags