GSAK (Geocaching Swiss Army Knife)
 

Contents - Index


Extract (function)

Extract(sInputString, sDelimiter, nFieldNumber) : string

This function will allow you to extract text from a delimited string. For example:
 

SET $Data = "Apple;Pear;Orange"
SET $Fruit = Extract($Data, ";", 2)


Now $Fruit = "Pear"

Note: sDelimiter can be a string of any length - not just one character as per the example (new in version 6.0)
Summary

Copyright 2004-2008 CWE Computer Services  
Privacy Policy Contact