HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

How to use the PML language to remove the last two characters of a string, where those two characters are variable

2012-10-25View Original

Thread Content

How to use PML language commands to delete the last two characters of a string, where those two characters change within the program. I need experts to give some advice!
Reply #22012-10-26
It’s not very clear; if there is a separator in between, use PART (’PIPE45/B9’, 2, ’/’)
Reply #32012-10-26
!NEWSTR = SUBSTRING ( !STR , 1 , LENGTH(!STR) -2)
Reply #42012-10-26
There is no separator, and the last three digits are all variable. It’s hard to determine the last two digits; I’m a beginner and not yet familiar with these commands.
Reply #52012-10-26
Haha, thanks so much; you’ve been a great help. I’ll try this command first to create the program; I’ll work extra hours tomorrow and run it on the model then. Please feel free to give me your advice when there are problems.

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.