errors in ex.err
- Posted by "Kat" <gertie at visionsix.com> Oct 09, 2004
- 451 views
I've been getting less than useful error msgs lately, from an app that has run for years fairly flawlessly (except for the strange errors i reported and got laughed at here, and so i restart the app when i detect them), but this one i don't see how i can detect in advance: <from ex.err> ================ u:\newsgetter\Eu webgetter tcp4u\Getabcnews4.exw:478 slice lower index is less than 1 (-4) u:\newsgetter\Eu webgetter tcp4u\Getabcnews4.exw:478 if length(href) and not equal(href,"") and href = {47'/'} =========================== </from> The entire if-then code is:
if length(href) and not equal(href,"") and (not match("/REUTERS",upper(href))) and (not match("/AP",upper(href))) and ( (not match(".HTML",upper(href[length(href)-5..length(href)]))) and (not match(".HTM", upper(href[length(href)-4..length(href)]))) ) then href = "" end if
As you can see, i FIRST test to see if there is anything at all in href, and that is where Eu is reporting i made a mistake. Naturally, i am now testing to see if (length(href) > 5) . Kat