Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message by clicking any field
Message
 
 
À
09/08/2009 10:12:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01416880
Message ID:
01416916
Vues:
47
>>I would like to display a messagebox as the user clicks any field or any place of my form
>>
>>Is it possible without have to write the code in each field ?
>>
>>= messagebox ("This form is readonly, click edit to unlock it")
>>
>>Moises
>
>
>for each oControl in thisform.Controls
>   if upper(oControl.BaseClass) = 'TEXTBOX'
>      =bindevent(eval('Thisform.'+oControl.Name) ,"Click",ThisForm,"myClick")
>   endif
>endfor
>
Zahid,

In this code, why do you need evaluate part, why not

bindevent(oControl, 'Click', thisform, 'myClick') ?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform