Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does this work?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Why does this work?
Divers
Thread ID:
00260752
Message ID:
00260752
Vues:
49
I put this code in the click event of a textbox in a column in a grid. I was looking for an easy way to highlight the entire row when this textbox was clicked. This code works but I don't understand why. I actually typed it, read it, processed it, and almost deleted it offhand just because it looked so wrong. It bothers me more that I don't understand why it works than if I had never come up with a solution in the first place.

Here is the code:

This.Parent.Parent.SetAll("DynamicBackColor", "IIF(This.Parent.Parent.ActiveRow <> This.Parent.Parent.ActiveRow,RGB(255,255,255), RGB(0,255,0))","Column")

Thisform.refresh()

Anybody have any ideas? Looks to me like the activerow would always be equal to itself but that's not how it works.

Thanks,
ken
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform