No it returns .f. when you haven't left the row yet and edited it to be the same as another existing key. If you scatter to an object before editing you can compare if it's already the same row or an edited new value.
Cetin
>Tank cetin,
>
>indexseek() on plan.dbf...
>
>yes , but in 'edit mode ' ( no append mode ' ) indexseek() return always .T..... ?
>
>bernhart
>
>>>Hi all,
>>>
>>>I have
>>>
>>>Plan.dbf
>>>cnumplan ( ex '600400' )
>>>cdenomplan 'Achat marchandises'
>>>
>>>
>>>I use local vfp view with BUFFERMODEOVERRIDE = DB_BUFOPTTABLE && optimistic table buffering
>>>
>>>In addition mode or edition , I don't want twice numplan = '600400'...
>>>
>>>In beforesave() , what can i put as sqlclause ?
>>>
>>>Sorry for my poor english
>>>
>>>bernhart
>>
>>Bernhart,
>>Check indexseek().
>>Cetin