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:
 

$Data = "Apple;Pear;Orange"
$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)

Alpha List         Category List

Copyright 2004-2019 CWE Computer Services  
Privacy Policy Contact