Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank Forms & Data Entry
Message
De
08/06/1998 19:12:57
David Turnedge
Turnedge Associates
Sydney, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Blank Forms & Data Entry
Divers
Thread ID:
00106111
Message ID:
00106111
Vues:
67
I have a client that wants to mimic the way many accounting systems seem to use forms during master file maintenance (ACCPAC, Dynamics, etc.)

When a user calls up, say, the Category maintenance form, she should get a blank form.

If she enters an ID in the index field and that ID already exists, that record should fill the form. If the ID does not exist, the form should go into 'add' mode.

I've been trying to implement this without reverting back to the GATHER and SCATTER commands.

My form automatically does an APPEND BLANK on opening and, if the user calls up an existing record, I TABLEREVERT() to get rid of the blank record.

MULTILOCKS is ON and CURSORSETPROP("Buffering", 3).

It seems that TABLEREVERT() does not kill the blank record if not required - I assumed that APPEND BLANK would only write a new blank record to disk when I issue TABLEUPDATE().

Can anyone help me here? I'd rather not have to write extra code to handle GATHER and SCATTER commands.

David Turnedge
Sydney, Australia
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform