I am trying to assign a certain field a name based on the third octate (SP) of the IP address. So far the only thing I have is the INSTR command. This is not going to work however since I have third octates that are the same as the second one (10.250.*.* and 10.250.250. etc). Here is my code so far:

Select
Case InStr(@IPADDRESS0,"152") OR 153 OR 154 OR 155 OR 254 OR 206 OR 190 OR 196 OR 216 OR 43
$CENTER = "BRK"

Case InStr(@IPADDRESS0,"196") OR 198 OR 205 OR 206 OR 232 OR 233 OR 234 OR 243
$CENTER = "MLK"

Case InStr(@IPADDRESS0,"223") OR 225 OR 226 OR 227 OR 248
$CENTER = "OPE"

Case InStr(@IPADDRESS0,"229")
$CENTER = "STC"

Case InStr(@IPADDRESS0,"252")
$CENTER = "PEO"

EndSelect

I am wondering is there anyway I can tell it to only read the third octate (the 5 - 7 characters)?