Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RLOCK and buffering and saving data VFP 9 vs VFP 7
Message
 
 
To
08/02/2007 16:20:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01193846
Message ID:
01193870
Views:
9
>>>I have several forms which have code similar to
>>>
x = tableupdate(.t.,.t.,'tablename')
>>>It works in VFP 7 but not in VFP 9. The form has a burffermode of 2 (optimistic buffering) and the table a buffermodeoverride of 5 (optimistic table buffering).
>>>
>>>Any one have suggestions on why this is happening and/or how to determine the problem?
>>>
>>>TIA
>>
>>And what AERROR() said?
>>
>>IF NOT tableupdate(.t.,.t.,'tablename')
>>   AERROR(laError)
>>   MessageBox(laError[1,2])
>>ENDIF
>>
>
>
>Thanks, it said "uniqness of index indexname violated". This a good clue of what is going on.
>
>The command
>
goto to bottom in tablename
The record could be deleted, but you would still have an error if the key value already exists in a table. What do you use for your index and how do you generate it?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform