Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This.setfocus in valid method
Message
De
28/11/1996 06:10:44
 
 
À
26/11/1996 19:07:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013655
Message ID:
00013767
Vues:
32
>>to check for a duplicate code, i tried using this.setfocus in a valid method, but it doesn't seem to work.
>>
>>if !tableupdate()
>> =messgebox('Duplicate code. Please reenter')
>> this.setfocus()
>>endif
>>
>>is there a better solution?
>\
>Have you tried RETURN .F.?

actually return 0 is much better (IMHO) as you will not get any additional error msg from fox
also note that you can use return with other values e.g.
return -1 will move the focus to the control before the current (in the Zorder)

Arnon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform