Craig,
As alternative from Charlie,
You can just use the string.lastindex of method (although in this sampe the
standard indexoff method goes as well to) to get the starting point for a
string.substring.)
http://msdn.microsoft.com/library/de...exoftopic2.asp http://msdn.microsoft.com/library/de...ringtopic1.asp
Alternatively you can use as well the Find and the Mid
I hope this helps,
Cor
"Craig Buchanan" <so*****@microsoft.com> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
I'm trying to extract the key/value pairs string like this:
[Status]
CurrTime = 1200
LastPlayQUpdate = 400
CurrVolume = -10
[End Status]
My first instinct is to use a regular expression to match values before
and after the '=', but there probably is a more efficient method.
Can anyone suggest a better approach?
Thanks,
Craig Buchanan