Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00393433
Message ID:
00393441
Views:
20
>I have replaced the textbox in a grid column with a command
>button with the caption 'View' to indicate when the memo
>field has data in it.
>
>Anyone know how to dynamically set the button's FontBold
>property when the field has data in it?
>
>Thanks

I would totally rethink how you are doing this. I would not use a command button in a grid column. In fact, I would not even have that column with a memo field. I would place a command button on the form. In the Grid's AfterRowColChange method, I would put:
local llHasData
llHasData = !empty(mytable.mymemo)
with ThisForm.cmdMemoField
   .FontBold = llHasData
   .ForeColor = iif(llHasData, rgb(255,0,0), rgb(0,0,0))
endwith
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform