Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for form1.office1.value
Message
From
09/09/1997 09:47:28
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00049027
Message ID:
00049126
Views:
54
>>>>>>>>>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'.
>
>>If you've left in the "Form1" as the name and you have another form open that has the "Form1" name, then you could be referencing the wrong form. Try giving each form a unique name or at least a unique variable in the DO FORM command.
>>
>>Steve
>
>Let me rehash as this is bugging me:
>I've created a form w/filename called binput.scx. On it is a textbox called office1 which a user will fill in. The caption I have named query1. I have a test.prg which reads:
>do form binput
>? query1.office1.value
>and the result is "QUERY1 is not an object.
>I've even tried "DO Form binput Name query1 LINKED" and same result

Before, DO FORM, can you try PUBLIC query1?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform