Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What was the last object I had focus on?
Message
 
 
To
06/08/2010 12:04:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01475139
Message ID:
01475549
Views:
27
>Naomi,
>
> I understand using the loop to force it to work with all underlying objects within objects such as grids and containers. I also see that one of the BaseClass she lists is [form] because basically the form is a container of objects as well, but for some reason it does not force it into the command button objects. I tried adding [commandbutton] and it errors out, but when I do not, it does not force it into the method of command buttons.
>
>
Yes, some classes are missing here
IF INLIST( LOWER( ALLTRIM( toObject.BaseClass ) ), ;
[form], [pageframe], [page], [container], [grid], [column] )

You should also add

IF INLIST( LOWER( ALLTRIM( toObject.BaseClass ) ), ;
[form], [pageframe], [page], [container], [grid], [column],[commandgroup],[optiongroup])

Or alternative check

if pemstatus(toObject, 'Objects',5) && container object
do recursive call
...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform