Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check box and text box in a grid column
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Check box and text box in a grid column
Miscellaneous
Thread ID:
00607061
Message ID:
00607061
Views:
71
Hi all,
I have a grid with one column that needs to show a check box only if a condition is true. Sparse won't work because the user needs to see all columns that have a check box. I tried adding a text box to the column with a when that only returns .f. and then using the DymamicCurrentControl to show the text box when I don't want the check box to show. The only problem is I can't get the DymamicCurrentControl to work. I put this command in the grid init method:
This.Column6.DynamicCurrentControl= ;
iif(manfid = '***', 'txtSeperate','ckbSeperate')

I get an Invalid Dynamic... error.
I always seem to have problems with the Dynamic stuff. Can anyone help? I really just want to not show the check box depending on a value in another field in the record so I'm open to all ideas.

John.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Next
Reply
Map
View

Click here to load this message in the networking platform