Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox in a loop!!!!
Message
 
À
17/10/2001 23:25:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570063
Message ID:
00570166
Vues:
23
Hi,

The valid event fires just before the object loses focus. It's either the refresh that calls it or it's in your flipenable method. Since the valid below calls them, the object loses focus causing the valid to trigger.

HTH,
Arriyel

>Hi Everyone,
>
>Can someone please tell me why in the code below the MessageBox gets caught in a continuous loop. This code is being called in the Valid event of a TextBox. Surely, I'm missing something.
>******************
>local lnanswer
>
>If Empty(This.value)
> lnanswer=messagebox("First Name field cannot be blank",1,"Text Entry Error.")
>Endif
>
>If lnanswer = 2 && If the Cancel button is clicked back out of the record.
> Tablerevert()
> Thisform.flipenable
> Thisform.Refresh
>
>Endif
>
>Return 0
>******************
Speak using soft and sweet words in case you have to eat them later.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform