Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with deleting records
Message
De
10/03/2003 15:03:26
 
 
À
10/03/2003 14:19:16
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00763611
Message ID:
00763874
Vues:
13
Cindy,

I'm designing a small sports booking system for a friend of mine. On one of the facilities, I have a grid, in one column I have all the times that facility can be used. Beside that, I have the name of the person using that facility at that time.

You see, this grid is populated using an SQL select statement, and is therefore temporary. When I click on a date, and then time, all of the information is added to the table, permanently.

This is why the table needs a (date + time) as the primary key. Now the user has told me that often a booking is made and then soon before use, is cancelled, and another person then makes a booking for that facility at that time.

For this reason, I must be able to permanently remove the record immediately. I was thinking if I use COPY STUCTURE TO "tempTable", then use information from tempTable. Then if I want to delete, I can do it with no index violation errors? At the end of all, I can copy the information back to the permanent table. This however I believe, is what the PACK command does!!

I'm sorry if this problem is a bit soft, but I have only recently started using VFP and this is my first project.

From reading this information you have any suggestions, they are all welcomed.

Thanks again,
Mick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform