Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Twice a key in a table
Message
From
01/05/2006 12:12:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01118041
Message ID:
01118073
Views:
15
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform