Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Hiding Grid Checkbox
Message
From
16/01/2012 06:36:32
 
 
To
16/01/2012 06:19:39
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01533003
Message ID:
01533008
Views:
36
>>Hi All,
>>
>>I have a grid displayed on a form which reflects the contents of a cursor. One column in the grid contains a checkbox connected to a logical field in the cursor which the user can use to select multiple records for further processing. Is there a way to hide or disable the checkbox if another field in that same record is blank, for example?
>
>Yes, use DynamicCurrentControl. In case the field is blank, return "" from DynamicCurrentControl()
>
>eg
>
>
>Column.DynamicCurrentControl = [iif(empty(cursor.field1), '', 'check1')]
>
Cool! Worked first time :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform