Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 16985

Forum Post: RE: OPPID - create a substring for a name property

$
0
0
Wim, I just created this using "LastIndexOf". In my test it worked fine. The ECExpression is: System.String.Substring(this.FILE_NAME,0,System.String.LastIndexOf(FILE_NAME,"-")). NOTE - In the "LastIndexOf" section that you DO NOT need the "this.FILE_NAME". Simply "FILE_NAME" will work. The this.FILE_NAME is used by PowerPID and not the System Strings. Regardless of the number of characters in the other parts of the string it will search the string starting at the "0" position and go to the LAST INDEX of the "-" and truncate the dash and all characters after it. My examples are shown below. I hope this helps, Tony DeRosa Bentley Plant

Viewing all articles
Browse latest Browse all 16985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>