Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid and Lostfocus in Grid
Message
De
24/09/1998 11:13:07
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
 
 
À
24/09/1998 10:21:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00140289
Message ID:
00140385
Vues:
23
>Create a form with a grid and one button
>
>in the thisform.grid1.column1.text1.valid method :
> if this.value > 1000
> = messagebox("Incorrect Value")
> return .f.
> endif
> return .t.
>
>in the thisform.grid1.column1.text1.lostfocus method :
> if this.value > 1000
> this.value = 0
> endif
>
>So if you enter 1000 the messagebox appears then you click OK and if you click on the button the thisform.grid1.column1.text1.lostfocus
>won´t be executed.
>
>What´s happening here
>
>I´m working with Vfp 5.0a
>
>Thank you ALL

Check to see if the form's button property cancel is set true

Obrigado pela resposta Antonio Carlos !!


O botão não tem a propriedade cancel a true, é apenas um artefacto para tu clickares fora to grid1.column1.text1. Se fizeres um form como eu escrive no exemplo acima, já vais ver o que está a contecer comigo.

There no problem with the button, if you have a text field instead of the button the and you click on the text field the thisform.grid1.column1.text1.lostfocus
won´t be executed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform