Cy
Thu Jun 14 19:36:12 CDT 2007
RGBean wrote:
> David,
> Does the index expression include fieldA? Replace ALL and even Scans
> become quite erratic if this is true. You essentially are changing your
> position in the index, and then it just depends on where you went as to
> whether FP decides it's 'done' .
>
> Rick
>
> "David Tiffany" <dtiffany@nospam.com> wrote in message
> news:O5te1WsrHHA.500@TK2MSFTNGP02.phx.gbl...
>> The filter condition still displays a number of records (more than
>> one), but only one of them has the replaced data in FiledA. Still a
>> mystery to me.
>>
>> I'll try to find a way around the filter, but it is real handy when
>> doing a seek to eliminate unwanted records.
>>
>> Dave
>>
>>
>> "Dan Freeman" <spam@microsoft.com> wrote in message
>> news:e57rfCsrHHA.4020@TK2MSFTNGP05.phx.gbl...
>>> Scope is always evaluated in the current index order's context. It
>>> has been that way since dBase II. (And you're right, I can't find it
>>> in the help file.)
>>>
>>> Be wary of filtered indexes in general. They're not always reliable.
>>>
>>> Dan
>>>
>>> David Tiffany wrote:
>>>> using vfp 9.1 on xp sp2
>>>>
>>>> under certain conditions I want to replace the contents of a field
>>>> for all records in a table
>>>>
>>>> the command
>>>>
>>>> REPLACE ALL fieldA with "B"
>>>>
>>>> results in only one replacement if the order is set to an index with a
>>>> filter.
>>>>
>>>> If I issue
>>>>
>>>> SET ORDER TO
>>>>
>>>> immediatelt preceding the replace it reacts as I would expect. I
>>>> can't find any documentation of this behavior. Am I missing
>>>> something?
>>>> Thanks,
>>>>
>>>> Dave Tiffany
>>>
>>>
>>
>>
>
I recall at one point that it was mentioned in the documentation (may
have been 2.0) to never replace values in a field that was ordered on
via index as the results were unpredictable.
--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com