Skip to main content
1-Visitor
January 20, 2010
Question

instring function in ACL

  • January 20, 2010
  • 2 replies
  • 857 views
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

    1-Visitor
    January 20, 2010
    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


    1-Visitor
    January 20, 2010
    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
    -