Replace the wait window by DOEVENTS makes it work! Thanks for the helps :)
But why does it work with DOEVENTS? Does it mean it my original codes, VFP have not run the set filter command?
Jimi
>>Yeah, I'm sure I've selected the correct work area before I save it.. have to wait for tomorrow morning to test what Vlad suggested. What else do you think whould cause this problem?
>
>You can also try to put LOCATE right after set filter to (cFilter). It should move record pointer to the first record in the filtered set.
>
>>
>>Jimi
>>
>>>Are you sure you're on the correct work area when you are saving filter expressen?
>>>Try to add select MyTable before cFilter = filter().
>>>
>< snip >
error(503): file structure failure, signature file corrupted.