Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00393433
Message ID:
00393441
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform