Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form template
Message
 
À
05/08/2000 10:36:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00401520
Message ID:
00401522
Vues:
24
>Hello.
>
>Hmmmm. You've tried to change backcolor of a method. This for sure won't work.
>
>I have a couple of suggestions:
>
>1. Use WriteExpression method:
>
>FOR II = 1 TO ThisForm.ControlCount
>IF "TXT" $ UPPER(ThisForm.Controls(II).Name)
>ThisForm.Controls(II).Enabled = .T. && This works!
>ThisForm.Controls(II).WriteExpression("BackColor","RGB(255,255,255)")
>ENDIF
>ENDFOR
>
>This should work, but,
>
>2.
>
>FOR II=1 to ThisForm.ControlCount
>If "TXT" $ UPPER(ThisForm.Controls(II).Name)
>ThisForm.Controls(II).Enabled = .T.
>ThisForm.Controls(II).BackColor=RGB(255,255,255)
>ENDIF
>ENDFOR
>
>works better.

It does work on all fields, but I want it to work only on one field when the user is editing it!

Thank you for trying to help me!
One can acquire everything in solitude but character.
Stendhal (1783-1842)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform