Xbase++
Xbase++
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat Xbase++ Downloads
LOCAL oSb
LOCAL cCompanyName
oSb := CreateObject("Chilkat.StringBuilder")
oSb:Append("<company><name>Chilkat Software</name></company>")
// For example, to get the company name in the string above...
cCompanyName := oSb:GetBetween("<name>", "</name>")
? "Company Name = " + cCompanyName
oSb:destroy()