Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for duplicate record (2 fields)
Message
De
26/02/2004 15:51:30
 
 
À
26/02/2004 14:20:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00881146
Message ID:
00881238
Vues:
16
>If there is a property that you have to indicate Edit Mode, you can put the code in an Access or Assign method (whichever suits you best). If not then probably put a call in your code that puts the form into "Edit" mode.
>

The intial application was written with out a framework and I could not find a property that says form is in Edit mode. There is a click method which puts the form into Edit mode and I assigned the new property there, i.e.
thisform.curseitecode = thisform.cbositecode.value
It almost works. When I select value for the drop down list it fires the validate and displays my warning message and resets value to the original value.

I still have the following odd behaviors.

1. Can type a value only once. i.e. assume values are A and B, then if I type an A I cannot type a B in its place but I can only change it via the drop down list.

2. When a new value is type in instead of being set by the drop down list its not always validate the new value, i.e. if records exist for A and B it does not display the message that data already esists and moves to the next field as if value is ok. Save does produces an error message but I want to avoid that.

Any explanations and suggestions appreciated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform