My best guess is that VFP is trying to 'convert' the strings into numbers, hence INT("2 and anything else") would return 2, same with INT("2.0")
I'm wondering why I didn't get an error on
Select TxTeam
when TxTeam wasn't open.
>Why does it work ?
>
>CREATE CURSOR zzz (dd n(5))
>FOR i=1 TO 10
> INSERT INTO zzz (dd) VALUES (i)
>NEXT
>INDEX on dd TO zzzi
>SEEK 2
>? FOUND() && .t.
>SEEK "2 anything else"
>? FOUND() && .t.
>SEEK "2.0"
>? FOUND() && .t.
>USE IN zzz
>RETURN
>
>Search is successful in all cases. Though index is created on numeric field, search is done with character expression.
>It MUST show a message about datatype mismatch. If not, it's terrible to change/define data types of searched
>field or searched expression "on-the-fly".
>SET ANSI, SET EXACT doesn't matter.
>VFP9+SP2.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place