Todd,
There is a mapbasic function called StringCompare that returns 0 when two strings
are identical.
In your case the code might look something like this:
If StringCompare(String1, String2)<>0 Then
' Do operation
End If
Fetch Next From ..
You could also use the following if you're not worried about case sensitivity.
If String1<>String2 Then
' Do operation
End If
Fetch Next From ..
Hope this helps.
Regards
Sue.
++++++++++++++++++++++++++++++++++++++++
adding Susan Port
value Technical Support Coordinator
to [EMAIL PROTECTED]
your
spatial Spatial Plus
systems http://www.spatialplus.com
++++++++++++++++++++++++++++++++++++++++
>How do you compare values in a string variable. I am trying to see
>if two values in separate string variable are identical, if they are,
>move on and fetch the next record.
>
>Thanks,
>Todd
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]