Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-23892

Righ space are not Trimmed automatically when used in assign values to variable and Std.Str.Find()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.8.2
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      CentOS Linux servers
    • Compatibility:
      Point

      Description

      Hello Team,

      I was told that ECL automatically trims the spaces on the right but when I use it in the STD.str.Find() and also in defining a value it doesn't

      Example:
      If I define
      STRING30 name := 'readfile'
      filename := 'thor::ln::'+name

      it would not find the file as it will keep the space so either I have to use TRIM(name) or define STRING name without the size.

      same applies to STD.str.Find

      Std.Str.Find(RIGHT.name_plus_altname, TRIM(LEFT.first_name), 1) > 0
      AND
      Std.Str.Find(RIGHT.name_plus_altname, TRIM(LEFT.last_name), 1) > 0,

        Attachments

          Activity

            People

            Assignee:
            jamesdefabia Jim DeFabia
            Reporter:
            Bandasha Gurjot Kaur
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: