Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I reference another form.
Message
De
21/08/1998 16:10:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00128914
Message ID:
00128922
Vues:
24
>I have a question. I have 2 forms, the 1st form is called frmInvoice. It has a pageframe1, and and optiongroup1. The properties are: desktop=.t.,windowtype=modeless,showwindow=inscreen. The 2nd form is called frmPrtbox which pops up, and the properties are: Desktop=.t.,windowtype=modal,showwindow=in top level form. Now from frmPrtbox, I want to reference the optiongroup in frmInvoice. The command I use is:
> if frmInvoice.framepage1.page1.optiongroup1.value=1 && get error; here, object frminvoice can't be found
> wait window "Option1 was chosen"
> else
> wait window "Option 1 was not chosen"
> endif
>What am I doing wrong? How do I reference frmInvoice from FrmPrtbox?
>
>TIA,
>Jim McCourt

Hi, Jim,

How do you execute the frmInvoice form?
If you used DO FORM... statement,
to have got the reference to this form you should do so:

DO FORM .... NAME frmInvoice

now you can reference to this form by name frmInvoice.

Best regards

Alex
(Sorry for my English)
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform