Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning False from Valid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01360554
Message ID:
01360557
Vues:
8
>I have a form (more than one, I'm sure) where a textbox is used to enter a value, the system looks up the value in a table, and populates a grid with some information from the record that is located. If data was entered, I return false so that the user can continue to enter values. If no data was entered, I return true so that the user can exit the control. This is done via the Valid method. It works like a champ. Now I am developing another form where I am using that same technique and, although it works, I get a beep and an "Invalid input" wait window when I return false. Actually, I believe this latter behavior is the std. behavior. The odd thing is that I don't know why I'm not getting it on the first form. I'd like to get rid of that behavior and have it work like the first form. I don't have anything in my base class that would affect this. Does anyone know why I might be getting the different behaviors?
>
>Thanks,
>
>Russell Campbell

Russel

Try returning a number - 0 to stay, 1 to go to the 1st control after, 2 for the 2nd, etc.

I've come across this before but so long ago, and I can't think of it now, but not really documented in help easy to find.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform