Hi all,
I just have a question that has bothered me for quite some time. I see this frequently and I don't understand it? Maybe someone can please explain this to me.
Below is some code I have, I didn't write, it actually came with a zipcode db I bought for reference.
I highlighted the area of the basic question as I see different letters before a word in code and have always wanted to know why this is there? Is there a purpose?
What is the f for in the fFound? I don't understand the random letter in front of words in code? Please explain to me...
Code:
Public Function GetCityState(strZip As String, strCity AsString, strState As String) As Boolean
' Comments:Lookup City and State based on zip code
' Params : strZip Zip code to lookup
' Sets : strCity City
' strState State
' Returns : TRUEif zip code found, FALSE if not
' Created :11/15/00-LC
' Modified:09/15/09-LC
Dim fFound As Boolean
Dim strZipSearchAs String
fFound = False
strZipSearch =Left$(strZip, 5)
IfLen(strZipSearch) = 5 Then
WithmrstZipCodes
.Index ="ZipPrimary"
.Seek"=", strZipSearch, True
If Not.NoMatch Then
fFound = True
strCity =![City]
strState =![State]
Else
strCity =""
strState =""
End If
End With
End If
GetCityState = fFound
End Function