Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does this work?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Why does this work?
Miscellaneous
Thread ID:
00260752
Message ID:
00260752
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform