Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Objects
Message
From
12/03/1998 11:15:42
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
To
12/03/1998 03:09:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00083921
Message ID:
00084179
Views:
26
>>>>I have a container class with serveral objects as members. I want to disable them all. Rather then explicitly nameing all of the objects, isn't there a way to use the .Objects property in a loop to disable everything in the class?
>>>
>>>
>>>oContainer.setall("Enabled",.f.,cClassName)
>>>Maybe following recursive method also helps.
>>>
>>>* Form custom method - xSetall
>>>lparameters oContainer, cProperty, vValue, cClass
>>>with oContainer
>>>	if inlist(.baseclass,"Container","Form","Page")
>>>	   .setall(cProperty, vValue, cClass)
>>>	   for ix=1 to iif(.baseclass = "Pageframe",.pagecount,.controlcount)
>>>	   		thisform.xSetAll(;
>>>	   		  iif(.baseclass = "Pageframe",.pages(ix),.controls(ix)),;
>>>	   		  cProperty, vValue, cClass)	
>>>		endfor
>>>	endif
>>>endwith
>>>
>>>
>>>Cetin
>>
>>Thanks Cetin, I know there was a way. By the way, about that Updatable view thing. I noticed the the index involved three fields. I set all three fields as key in the View Designer. Now all fields in the base table updates except the the first one(which is blank). The view shows all fields filled in. This first field is a key and it is marked as a key and updatable. Any ideas why just this one column is not being updated?
>>
>>Ed
>Disabling all at once is easier as Jeff suggested. I wrote the above for a generic property setting and note that all types of containers (commandgroup, optiongroup, grid etc) are not included.
>I was wondering about that view, thanks. I have only a silly idea, could that field be a combined expression in view (like firstname+lastname as name - I use sometimes) ?
>Cetin

Cetin:

No, just individual fields.

Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform