Page History
...
Code Block |
---|
Result = SRP_String(Service, String, Param1, Param2..., Param3ParamN) |
Returns
The meaning of the return value depends on the service.
...
Parameter | Description | ||
---|---|---|---|
Service | The action to apply to the given string. Required. | String | The string upon which the service will operate.Required. |
Param1 - Param3ParamN | Service parameters. See specific service for details. |
...
Much like the Utility function in OpenInsight, the SRP_String function provides multiple services which are identified in the Service parameter. The services are:
Service | Description |
---|---|
Compare | Compares two variables as strings. See also EQ, EQC, NE, NEC, LT, LTC, LE, LEC, GT, GTC, GE, and GEC. (Added in 4.2.6) |
DetokenizeCode | Converts an array of BASIC+ tokens into a string of BASIC+ code that can be compiled. |
GetHeight | Calculates the height a word-wrapped string would need given a certain font and width limit. |
GetWidth | Calculates the width a string would need given a certain font. |
TokenizeCode | Parses a string containing BASIC+ into an array of discrete BASIC+ tokens. |
Trim | A more advanced trim operation for OI strings. |
Click on the service names above to read more details.