Lianja
Lianja
StringBuilder RemoveBefore
Demonstrates the StringBuilder.RemoveBefore method.The GetBefore method was added in Chilkat v9.5.0.77
Chilkat Lianja Downloads
llSuccess = .F.
loSb = createobject("CkStringBuilder")
llSuccess = loSb.Append("http://www.chilkatsoft.com")
// The RemoveBefore method removes the chars up to and including the marker string.
// If the marker is not found, then nothing is removed and the method returns .F..
lcMarker = "//"
llBFound = loSb.RemoveBefore(lcMarker)
? "bFound = " + str(llBFound)
? "sb contains: " + loSb.GetAsString()
// Output is:
// bFound = .T.
// sb contains: www.chilkatsoft.com
release loSb