GSAK (Geocaching Swiss Army Knife)
Contents - Index

Substr (function)

Substr( sData, nStart, nLength ) : string

Returns a portion of the string expression starting at the defined start location for the defined length..

sData - The full string
nStart - The starting position in the string
nLength - The number of characters to return from nStart. The reserved value of 0 (zero) will return all characters to the end of the sData string.  

Example:
 

$result = Substr("xyzabcd", 3, 4)
msgok msg=$result

 


Related: Right() Left() Len()

Alpha List         Category List

Copyright 2004-2014 CWE Computer Services  
Privacy Policy Contact