Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To BE or NOT To Be... an OBJECT under the FORM
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01506708
Message ID:
01506709
Views:
110
This message has been marked as the solution to the initial question of the thread.
Are you sure you placed your buttons directly on the form?

Also, from where do you call this code? It should be done in the Form's Init or later.

>Hi Gang!
>
>Have you ever seen this?
>
>I''ve got a FORM called FRMPRICEUPDATES.
>
>Ive' got 2 command buttons and one grid on it.
>
>The command button in question is....
>
>cmdImportData
>
>
>When the grid is empty, I want the cmdImportData button to be disabled... simple enough.
>
>Here is the code...
>
>
>IF lnTally > 0
>	Thisform.cmdImportData.Enabled = .T.	
>ELSE
>	Thisform.cmdImportData.Enabled = .F.
>ENDIF 
>Thi
>
>
>Yet the code blows on Thisform.cmdImportData.Enabled !!!
>
>"Unknown member cmdImportData" !!!
>
>And when I trace the code to the above code... Thisform. does not show any of the objects I placed on the Form !!!
>
>So, what do I have..... a corrupted Form, or have I lost my mind today ???
>
>Thanks!
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform