PxPlus User Forum

Main Board => Knowledge Base / Training => FAQs => Topic started by: PxPlus on May 30, 2018, 03:56:04 PM

Title: STP function change can lead to unexpected results
Post by: PxPlus on May 30, 2018, 03:56:04 PM
The STP function can now accept string strip types operators.

The problem can be seen on a line entered as:


The system syntax checks accepts the line however during execution it failed with an error 26.

At issue is that the STP function accepts a string strip type ("L", "R", "C", "A", or "B") and as such the syntax of a STP function can be

    STP (String$, String$)

However you will get a run-time error if the second string is not one of the possible stripping forms.

This can prove difficult to detect and debug due to the fact that forgetting to include a strip type value would be a common typing mistake.