Hello, I use this code to monitor some changes on site index,
evrything works OK when first time getting data, and when I
use it in loop mode, all info remains same but it chages on site!
What is wrong with this code, why he dont read site info in loop mode?
VB Code:
lStart = 1 lEnd = 1 sFindStart = "news this hour:" sFindEnd = vbNewLine sSource = "" sSource = Inet1.OpenURL(GetSetting(App.EXEName, "Settings", "text1", "")) Do While Inet1.StillExecuting DoEvents Loop Inet1.Execute , "CLOSE" lStart = InStr(lStart, sSource, sFindStart, vbTextCompare) If lStart Then lStart = lStart + Len(sFindStart) lEnd = InStr(lStart, sSource, sFindEnd, vbTextCompare) If lEnd > lStart Then Text1.Text = Mid$(sSource, lStart, lEnd - lStart) Else Debug.Print "Cant find text." End If Else Debug.Print "Cant find text." End If End If
So Text1.Text remains same when using loop mode, WHY
And web site info changes





Reply With Quote