Roberto,
SET EXACT and SET NEAR are scoped to the datasession of the form. Look at SET DATASESSION for a list of these. You probably have them set to non-default values under Tools/Options or in a config.fpw which is causing the difference in execution between command window and form.
>Im using a SEEK() for validate an event, but its not working properly. The index is compossed by two numeric expressions:
>
> STR(field1) + STR(field2)
>
>on the table, with only one record:
>
> FIELD1 FIELD2
> 1 11
>
>then, running the form, I look for STR(1)+STR(7) and VFP 5.0 says that he found it. Obviously the SET EXACT ON is on effect, and if I quit my application and do it by the command window, it work how it should!
>
>I imagine this is happening because a SET, but which?