Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ChkBox Captions in a Grid
Message
From
06/01/1998 15:18:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069705
Message ID:
00069876
Views:
40
>>>>I have made a checkbox the CurrentControl in a grid column. It's value is based on a logical field type. I need to make the caption say "Yes" or "No" based on the logical value. No matter what I do, I either get all "No" or all "Yes" or no synchronization between the value and the caption. Is there a way to do this? BTW, Sparse is .f. for the column. I know this should be fairly intuitive for users to interpret, but keep in mind this if for people who have called me wondering what they did with their boot-disks in the days of workstations that booted from diskettes, among other mindless questions.
>>>>
>>>>TIA.
>>>
>>>My guess is that you did not link the column to the underling cursor of the grid. In that case there _is_ only 1 textbox.value per column. The solution might be for you to create an empty cursor and submit it to the grid.
>>>
>>>HTH,
>>>
>>>Marc
>>
>>Corrections:
>>
>>underling --> underlying
>>textbox.value --> checkbox Value
>>
>>Pouf Pouf.
>>
>>Marc
>
>The column is bound to the table.fieldname. And the current control is set to ChkBox. I am wanting the caption of each check box in the column to be dynamically set to the logical value of the field bound to the column. The values are a mixture of .t. and .f. but all the captions are not in synch to the actual values ("Yes" of .t. or "No" if .f.).

Mark, use DynamicCurrentControl property, i.e. you will have two check boxes with different static captions.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform