Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get back to a previous text box if error occurr
Message
De
05/01/2000 14:55:01
 
 
À
05/01/2000 14:31:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00313407
Message ID:
00313436
Vues:
37
>I think this is a simple question but I am having trouble figuring it out. Here is my question...
>I have a text box on a form. After the user enters data the valid checks the data. If the valid determines it has invalid data, I want the focus to go back to the field with the invalid data and not move on to the next text box. In Version 2.6 we used to use the _CUROBJ command to move the focus to the previous text box. In Version 5.0 how do I do this? I tried using the SetFocus command but it said that it is read only. Read only? I checked the properties for this object and it's not set to read only...

Just have the Valid method return a -1 and the previous control will receive focus.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform