Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Revert Problem
Message
 
À
10/03/1998 11:21:07
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00083629
Message ID:
00083655
Vues:
28
>>>>Hello All;
>>>>
>>>>We've created a database with certain rules and messages.
>>>>at the field level. When a user enters a value that breals
>>>>these rules, VFP issues a messagebox with the ok, revert
>>>>and help command buttons.
>>>>The reason is that the revert button literally reverts
>>>>all changes on the record and not just the specific fields.
>>>>
>>>>How do I go about controling these buttons - specifically
>>>>I want only the OK button??
>>>>
>>>>Thanks
>>>>
>>>>Sandy
>>>
>>>I guess that Revert button fires Tablerevert() which really reverts whole buffer (record in a case of row buffering). Probably, you should change your code using CURVAL(),OLDVAL() to restore previous field value.
>>
>>Thanks for responding.
>>There is no code involved here. The command buttons are defaulting
>>directly fronm the database. It's obvious that the revert is
>>tabverevert(). In that the ranges for values and the message
>>are being set in the DBC, we don't seem to be able to control the
>>messagebox()
>
>Even if you're using field rules, you should still be able to use OLDVAL() and CURVAL().

The heart of the matter is that even in a browse, these
field rules are active and we get the message of help, revert
and ok. Oldval() and newval() need buffering with cursorsetprop
and just opening a browse doesn't do this. I just need the
DBC to stop setting it's own defaults. How can I do this??
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform