docs

Home All functions Categories

vuStringParse(MainStrg, subStrg, Segment)

vuStringParse(*CSTRING, *CSTRING, LONG), CSTRING

Description

Parses a string based on the specified delimiter and returns the requested segment. The delimiter can be one or more characters.

Parameters

Parameter Data Type Description
MainStrg CSTRING(256) The input string to parse.
subStrg CSTRING(128) The delimiter string (one or more characters).
Segment LONG The segment number to return (1-based index).

Returns

A CSTRING containing the segment of MainStrg between the specified delimiters.

Example

MainStrg = 'Segment1<>Segment2<>Segment3<>Segment4'
subStrg  = '<>'

Result = vuStringParse(MainStrg, subStrg, 3)
MESSAGE(Result)
! Result: 'Segment3'

Notes

Chat

Home All functions Categories