Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using A Buffer File
Message
 
À
05/12/2001 23:14:18
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00590334
Message ID:
00591310
Vues:
25
>When you use the table fields as the control source, it seems more circuitous to check for existing order numbers before saving, etc.

You could write a process for the LostFocus of the textbox that receives the prospective "new" order number. The lost focus could verify and then protect (if neceesary) that particular client's use of the order number for the next new order.

You could make it stateless. Let's say an existing order number is entered. A stateless system would pull the existing order into the clients form to be edited. A new order number would populate the form with blanks.

>Then if the user aborts the action, you have to unwind the whole process. Is there something basic that I am missing?

Theres a lot to be said for seek, and index seek and hard binding table data to the client rather than SELECT INTO's and TableUpdate/Recvert. Its more painful, but the end result can be quick and cleaner. REPLACE and SEEK (etc) are old, but they're fast and solid - no guesswork for macro engines (TableUpdate (etc))
to fail around or necessitate complicate roll back (macros?) procedures.

BOL
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform