I have a simple code example for catching values of the name name that have some values that are capitalized and some that are lower case:
- Dim X
- If InStr( [Reservoir],"bARNETT" ) OR InStr([Reservoir],"BARNETT") Then
- X = "BARNETT SHALE"
- else
- X = ""
- end if
- Expression = X
I would like to use a wildcard so I don't have to use the Or Statement. In the interest of standardizing oil and gas reservoir names for spatial analysis there has to be a quicker way then writing long "AND" "OR" arguments.
This is in VBscript because I couldn't see the "InStr" function or a function like it in the python examples.
I tried the following:
- Dim X
- If InStr( [Reservoir],"%ARNETT" ) Then
- X = "BARNETT SHALE"
- else
- X = ""
- end if
And it didn't work.
As always any help is much appreciated!