Parse values from NVP strings


LotusScript


Function ParseValue(inputStr As String, valueStr As String) As String
	
	Dim newStr As String
	Dim startpoint As Integer, endpoint As Integer
	
	startpoint = Instr(1,inputStr,valueStr+"=") + Len(valueStr)+1
	endpoint = Instr(startpoint,inputStr,"&") - startpoint
	newStr = Mid(inputStr,startpoint,endpoint)		
	
	ParseValue = newStr
	
End Function

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Saturday August 9, 2008