What is the objectscript function to trim a string?
If a have a string " Happy new year " and I want to trim (remove blank spaces from the begin and the end, not other places into the string), what is the object script function to get "Happy new year"?
Product version: IRIS 2021.1
You can use $ZSTRIP for this, in your case:
You should use $ZSTRIP with the "W" for whitespace: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
w $p("Happy new year ..................","...")
---------------
Happy new year
Write "Happy new year"
Yeap