Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access the FORM properties
Message
De
06/10/2005 05:10:27
 
 
À
06/10/2005 05:06:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01056641
Message ID:
01056642
Vues:
16
>Hi,
>I have command button on a form, the click event will call a user define function to run something. But in the function will access a properties on the form.
>
>For example
>
>
>function check_count()
>ncnt = thisform.count
>....
>Return .t.
>
>
>I got an error said that thisform only use in METHOD.
>
>How can I solve it ?
>Please advise
>Derek

Pass the form reference to the function
if( check_count(m.thisform) )
  ..
endif


function check_count(FormObj)

    ncnt = m.FormObj.count

endfunc
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform