-
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
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,