Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh buttons on form from a program
Message
De
19/04/2002 10:04:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00646592
Message ID:
00646892
Vues:
15
>>There is a main from (call it a) and menu items to search on specific fields (call one of them b). The serach programs are called from a program which calles the appriate form. The search form moves the record pointer. form a has some navigation buttons which are define in a class library. I want to call the methods that refresh the buttons (i.e. enable then based on record pointer value (top, middle, bottom).
>>
>>Is this possible? If some what are the commands?
>>
>>TIA
>
>You can pass your form to the program, e.g. do MySearch with thisform
>
>mySearch.prg
>lparameter toForm
>....
>toForm.button1.refresh()
>
>Otherwise you can use _screen.ActiveForm reference

To be sure I understand it if the name of my form is datalistform and method to refrexh buttons for buttonset1 is buttonrefresh the command is
datalistform.buttonset1.buttonrefresh()

or is it

datalistform.buttonrefresh()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform