Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for form1.office1.value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049027
Message ID:
00049047
Vues:
50
>>>>>I am trying to evaluate the expression "form1.office1.value" but the error "Object form1 is not found" results. the form I created is subclassed but still is called 'Form1'.
>>>>
>>>>Try Thisform.office1.value
>>>>or (if it's not active form) _SCREEN.Forms(nIndex).office1.value
>>>
>>>I am referencing it from code in another form.
>>>Wondering why I cannot refer to it as 'form1' or whatever I choose to call it?
>>>I am not sure what _SCREEN.Forms(nIndex is as I've not used it
>>
>>You can still use Form1.office1.value, if you initiated your form using:
>>DO Form Form1 Name Form1 LINKED
>>If you will be unsuccessful here, just make a look at 'Forms Property' article from Help to understand another way.
>
>Well I issued a "DO Form myform Name Form1 LINKED" but still tells me "form1 is not an object". When I created the form I said create form myform and the title of the form defaulted to 'form1' like they all do.

Instead of using form1.office1.value, try replacing form1 with the FILE NAME of your form. For instance, if it is myform.scx, then try myform.office1.value
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform