Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid event problem
Message
De
01/04/2008 17:05:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Valid event problem
Divers
Thread ID:
01307503
Message ID:
01307503
Vues:
58
Ok, this should be simple but of course it can't be.

I have a valid event I use to check for the existance of an item in our inventory masterfile. This event is just for a warning, not to ever stop someone from entering 'bad data'.

Example:

Valid event
Select Icitem
Locate for icitem.item = this.value
if EOF()
    =messagebox("Warning! This item is not in the master file")
endif
Simple enough right?

Well the problem is that I have a button. If you happen to be in the field that is getting validated and you click the button, the valid event fires; but then the code in the click method of the button never runs. For some reason the valid event code is cancelling out the code in the button.

Any ideas? What am I missing here?

Greg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform