Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.Columns(i).controlsource problem
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00404935
Message ID:
00405331
Views:
62
Nadya,
Can you simply make it a calculated field with the calculation Controlsource=!Fieldvalue?


>Unfortunately, we specified this logic: if field value equals .f. (default state for logical field), it means, that we want to review this record. My program sets field value to .t. for cases, there we don't want to review the record data (e.g. this program should save operation time and process). N/Y looks good and self-explanatory (Y - should be reviewed, N - should not). I already tried checkbox and it looks ugly for this particular purpose. I also tried bunch of other ideas, and didn't achieve the desired result. I'll ask my manager, is it critical to allow manual editting (originally this grid was supposed to be always in ReadOnly mode). May be it's ok to see T/F instead of N/Y and I don't have to 'torture' myself...
>
>>Mike's suggestion for the checkbox is really the easiest thing to do, but it seems you're using backwards logic for some reason. Since the user doesn't actually see the contents of the field, why don't you store .F. for cases where you want to disply "N" or an unchecked box and .T. when you want to display "Y" or a checked box?
>>
>>Juan has told you how to add the checkbox to the grid, but you'll also want to set the column's Sparse property to .F. so that you can see the checkbox in all rows.
>
> Actually, I knew this already, but anyway, thanks.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform