Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LostFocus
Message
 
 
À
12/04/2002 14:44:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00644469
Message ID:
00644470
Vues:
11
Add NODEFAULT to prevent default VFP behavior for the LostFocus that is moving to the next control.

>Hi,
>
>I'm really confused here.........On a lost focus event of a textbox within a form, I am checking to see if that value occurs in another table to get corresponding info.......If not found, I want to set the focus back to that textbox, which I believe am doing correctly but it will not work, focus goes on to the next control. Here is my code.....
>
>cValue = ALLTRIM(authorizations.au_servcode)
>SELECT ratecodes
>SEEK cValue ORDER serv_code IN ratecodes
>IF FOUND()
>	replace authorizations.au_unitchrg WITH ratecodes.rate
>ELSE
>	MESSAGEBOX("Service Code not on file...",16,'Attention')
	THIS.SetFocus()
        NODEFAULT
>	*thisform.Refresh
>	RETURN
>ENDIF
>
>Thanks for any response,
>
>Mike
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform