Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Form Values Programatically
Message
De
03/01/2007 13:21:58
 
 
À
03/01/2007 13:17:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01181885
Message ID:
01181887
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>I have an application that generates a form (MainScreen.Scx). The Main.prg includes
>
>
 Do Form MainScreen Name Main
>Read Events
>
>Included in the init method of MainScreen.Scx is
>
Do Main.mpx
>
>I want to change the value (MainScreen.Label1.Caption) from a program called by the Menu prompt. (Either Command or Procedure) If this was "within" the form, the syntax would be:
>
>
Thisform.label1.Caption = 'New Caption'
>Thisform.Refresh
>
>But what is the syntax from MyPrg.prg called by Main.mpx
>
>Thanks to all,
>
>dg

Since you already use the NAME clause of DO FORM:
Main.label1.Caption = 'New Caption'
Main.Refresh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform