I got this source to some program, it uses HTTPwrapper but theres one par in the code that says "HTTPwrapper.ib". so i searched and it turns out that ".ib: stands for "ibetween" but I cant seem to find a function like GetStringBetween 0_o its weird maybe someone can tell me it?
That was not made by me!!! Code (Text): Public Function iBetween(ByVal InputText As String, ByVal StartText As String, ByVal EndText As String, Optional ByVal StartPosition = 1) As String Dim lnTextStart As Long Dim lnTextEnd As Long lnTextStart = InStr(StartPosition, InputText, StartText, vbTextCompare) + Len(StartText) lnTextEnd = InStr(lnTextStart, InputText, EndText, vbTextCompare) If lnTextStart >= (StartPosition + Len(StartText)) And lnTextEnd > lnTextStart Then iBetween = Mid$(InputText, lnTextStart, lnTextEnd - lnTextStart) Else iBetween = "" End If End Function
I use this for getting between. if there is something that has lststuff or a string after it it could be extract all. Here is get between Code (Text): '//This is Mumei's, it just in here because it's convenient. Public Function GetStringBetween(ByVal InputText As String, _ ByVal StartText As String, _ ByVal EndText As String, _ Optional ByVal StartPosition = 1) As String Dim lnTextStart As Long Dim lnTextEnd As Long lnTextStart = InStr(StartPosition, InputText, StartText, vbTextCompare) + Len(StartText) lnTextEnd = InStr(lnTextStart, InputText, EndText, vbTextCompare) If lnTextStart >= (StartPosition + Len(StartText)) And lnTextEnd > lnTextStart Then GetStringBetween = Mid$(InputText, lnTextStart, lnTextEnd - lnTextStart) Else GetStringBetween = "" End If End Function don't have it httpwrapper.getbetween have it getstringbetween
yeah i have tried making the ib on a new line without the HTTPwrapper but that didnt turn out too well. so im gona try GSB again. edit: ok weird... i just added the GSB to the HTTPwrapper and guess what... it works 0_o lol thanks for telling me to use GSB