The InStr() function find strings within strings so the first InStr is looking at the string contained in iTeamID and seeing if it contains the value "lg". If it find it, then the second function Replace() is run and in the string contained in iTeamID, it is replacing "lg" with an empty (blank) string value "".
Else it sets the iLeagueID to 9.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.