I have some Calculate Field tools in a model that are using IF THEN expressions in VB originally created in 9.3. Now they aren't working in 10. I searched and searched and found out that taking out the dim aValue as Integer fixed some of my expressions, but not all. I currently have this expression that seems extremely straight-forward, but won't work in Modelbuilder. Dim Potential
IF [gisdata_gis_BLDG_BUSINESS_SWBusinessType] Like "Mobile*" THEN
Potential = 0
ElseIf [gisdata_gis_BLDG_BUSINESS_SWBusinessType] = "Municipal" THEN
Potential = 0
Else
Potential = 1
EndIf
What is wrong with my code? Or, what is wrong with Modelbuilder?Is there something I can look at that tells me what the changes are between VBScripting in 9.3 vs 10?