Difference between revisions of "F$EXTRACT()"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''F$EXTRACT()''' is a lexical function that extracts the specified characters from the specified string. =Format= F$EXTRACT(start,length,string) '''Sta...")
 
 
Line 20: Line 20:
 
* [[F$LOCATE()]]
 
* [[F$LOCATE()]]
 
* [[F$LENGTH()]]
 
* [[F$LENGTH()]]
 +
 +
[[Category: Lexical Functions]]

Latest revision as of 05:46, 15 January 2019

F$EXTRACT() is a lexical function that extracts the specified characters from the specified string.

Format

F$EXTRACT(start,length,string) Start is the character number where the extracted substring should start. The numbering starts at 0. Length is the length of the extracted substring in characters. String is the string that the substring should be extracted from.

Examples

$ NAME = "PAOLO TESTA"
$ FIRST = F$EXTRACT(0,5,NAME)
$ SHOW SYMBOL FIRST
   FIRST = "PAOLO"
 

See also