Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with primary key.
Message
From
01/11/2002 08:03:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/11/2002 07:54:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00717718
Message ID:
00717720
Views:
15
>dear all,
>i've got problem here, help me...plz...
>
>i have a table with a primary key. i use it in a form so i can make a new record and delete it. the problem is there is an error, with the primary key, if i make a new record after i delete one record in that table. anyway, i won't be able to 'PACK' the table coz i use a grid in the form to browse all data/record. i've tried using 'SET DELE ON' & 'SET FILTER TO NET DELETED()' but it doesn't work.
>what should i do?
>
>thank's before...

SET DELETED is scoped to the current datasession. That means that if you use private datasessions, you must SET DELETED ON in the form - the global setting will not be respected.

PACK should only be done ocassionally; for instance, once a month.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform