Skip to content

_strext

bergsma edited this page Sep 26, 2014 · 3 revisions

#strext

###Extract a sub-string from a string.

Syntax

substring = strext ( string,offset,length ) ;

Arguments

  1. str string

The source string.

  1. int offset

The offset in string where the sub-string starts.

  1. int length

The length of the substring.

Return Value

str substring
  • substring : The extracted substring.

The STATUS variable is set to $ACKNOWLEDGE

Warnings

  • %BOUNDS: Invalid offset specified in strext. A null string is returned.

  • %BOUNDS: Invalid length specified in strext. A null string is returned.

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: substring = strext ( string,offset,length ) ;

Description

  • None

Examples

puts "Create an example for the function 'strext'" ;

Related Links

None

Clone this wiki locally