Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking if column has a control
Message
From
18/03/2011 13:00:50
 
 
To
18/03/2011 06:04:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01502528
Message ID:
01504136
Views:
105
>
>*!* grid.init
>LOCAL loColumn, loControl
>
>FOR EACH loColumn IN this.Columns
>    FOR EACH loControl IN loColumn.Controls
>        IF (UPPER(loControl.BaseClass) == [CHECKBOX]) AND (UPPER(loControl.Name) == [CHECK1])
>            *!* do something here
>        ENDIF
>    ENDFOR
>ENDFOR
>
I believe you only need to check the baseclass. There is a remote possibility that the control name was specified when checkbox was added, so it is possible that the name won't match "Check1" (e.g. the default name would also be different in the case when a subclass of Checbox class was being used)
Previous
Reply
Map
View

Click here to load this message in the networking platform