Sample code for 30+ languages & platforms
Visual FoxPro

StringBuilder GetAfterBetween

Demonstrates the GetAfterBetween method.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loSb
LOCAL lcSearchAfter
LOCAL lcCompanyName

loSb = CreateObject('Chilkat.StringBuilder')
loSb.Append("<abc><person><name>Joe</name></person><company><name>Chilkat Software</name></company></abc>")

* The GetAfterBetween method gets the substring between two arbitrary marker strings, and doesn't
* start searching until the searchAfter string is passed.

* For example, to get the company name in the string above...
lcSearchAfter = "<company>"
lcCompanyName = loSb.GetAfterBetween(lcSearchAfter,"<name>","</name>")
? "Company Name = " + lcCompanyName

RELEASE loSb