What version are you running where $EXTRACT is not available? Not sure I’ve heard of such a situation.
edit: noted you referenced ..ReplaceStr which is an Interoperability function. There are semi-equivalents of $EXTRACT and $FIND in there as well - $EXTRACT is ..SubString. But note if you use the solution I or David presented, don’t use .. in front of $EXTRACT, $FIND or $PIECE as these aren't interoperability functions but pure ObjectScript functions.
my suggestion, that I know works as we do something similar, is as follows:
“(“_$PIECE(input,”(“,2)
Have to re-add the opening paren since we’re using that as our splitter, but some find it easier than chaining multiple functions together. David’s solution is certainly valid too.
https://docs.intersystems.com/iris20221/csp/docbook/Doc.View.cls?KEY=RC…
- Log in to post comments
.png)
.png)
