VA FileMan V. 22.0 Getting Started HTML Manual Banner


 

Main Chapter Getting Started Manual Programmer Manual

VA FileMan Functions


$E[XTRACT]

Format:
  1. $E(string,n1,n2)

  2. $E(string,n)

  3. $E(string)
Parameters:

string is a string expression.

n, n1, and n2 are positive integers or expressions yielding positive integers.

Use: This function returns a substring from string. If you use only string as a argument, the first character is returned. If you specify one n, the character in that position in the string is returned. If you specify n1 and n2, a string starting at n1 and ending at n2 is returned.
Examples:

$E(NAME,3,7)=> ith,A [NAME is Smith,Al]

$E(NAME,2)=> m

$E(NAME)=> S

 


Reviewed/Updated: March 4, 2007