How to extract specific characters from a string of characters using custom functions?

How to extract specific characters from a string of characters using custom functions?

book

Article ID: KB0080918

calendar_today

Updated On:

Products Versions
Spotfire Statistica 12.6 and later

Description

Specific characters can be extracted from a string of characters located in another variable using custom functions.

Resolution

Function: Mid(string, start_index, length)

Description: Returns a specified number of characters from a string.

Details: The Mid function requires three parameters:

String -The original variable containing the string

Start_index - the index of the starting character in the string

length - the number of characters to extract.

Note: This function only works with string characters.

Issue/Introduction

How to extract specific characters from a string of characters using custom functions?