Websydian v6.1 online documentationOnline documentation - Websydian v6.1

SubString

Scoped name

WSYBASE/StringFunctions.WebServer.SubString

WSYBASE/StringFunctions.Server.Substring

Interface

Field Variable ...as Description
StringSource Input Input The source string to be used for doing the substring
StringLength Input Input The number of character to be extracted from StringSource

0 - Indicates rest of string (from StringPosition)

StringPosition Input Input The starting position of the extraction
StringTarget Output Output The result of the extraction
StringTargetLength Output Output The length of the string returned

Description

The StringPosition field is one-based (first character in the string has position 1).

Perform an extraction of a string from another string specifying the starting position and length of the string to be extracted.

If StringLength is set to 0 (*Zero), the content of the string from StringPosition to the end of the string is returned.