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:
00049053
Vues:
45
>>>>>>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

that did not work, seems I cannot reference the office1.value from outside the form!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform