Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for form1.office1.value
Message
 
To
08/09/1997 15:59:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00049027
Message ID:
00049044
Views:
47
>>>>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.
"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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform