Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Addressing question..
Message
From
24/11/1997 15:58:14
 
 
To
24/11/1997 15:56:32
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00061995
Message ID:
00062014
Views:
48
>>>The reason that thisform.cmdSave.visible = .f. doesn't work, is because it looks like you have it on a pageframe. Unlike VB, VFP requires that you refer to objects from their containers. So, it'd be thisform.pageframe1.page1.cmdSave.visible = .f.
>
>>Is there no other way? Can I set up some kind of memory
>>variables. It seems like to much work to have to refer to
>>objects in their container. I have a program with 4 SAVE buttons.
>
>You could just write a generic routine that would make them all invisible, having the routine drill down through all of the containers looking at controls. This method will be cleaner code for you, but could be slow if you have a lot of controls.

Make things easier:
Thisform.SetAll("visible",.f.,"cmdSave")
'cmdSave' is class from where all 'Save' button should be instanciated.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform