Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridHighlighter Class Issue - Not
Message
 
To
01/06/2001 12:41:33
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00513909
Message ID:
00513962
Views:
14
>Hey Nick,
>
>I was just about to post a question regarding your grid class when I suddenly resolved the issue. I searched UT for a similar issue and did not find anything, so I thought it might be something that others would want to know in case they believe that the class is misbehaving...
>
>I kept getting errors regarding invalid values for the dynamic properties and I realized - after much consternation - that the grid in question did not have a default RecordSource (I inherited the app and the grid). The RecordSource was being defined in the activate of the page that the grid was on instead. As soon as I changed it on the grid everything worked fine. I'm not exactly sure at what point the RecordSource needs to be available for the GridHighlighter to handle it, but for me just having a default set at development did not disrupt the functionality of the app and allowed the class to work as intended.
>
>I still owe you something from Raleigh, NC and I promise it won't be long in coming -- It's harder than I thought trying to come up with the right thing...and the time...and remembering...:) Thanks, I really like the class and use it in all my grids (now that I know how to use it).
>
>Renoir

Hi Renoir,

Thanks for letting me know. I just added the code to GHL to handle situations like this. The thing is that I just can't sit, prepare the test cases for all possible usage of the class and test everything.
I believe the job like this would be similar to what JohnK will be getting the big bucks for at Microsoft soon. :)

I will post the updated version this weekend. There is another GHL code change that will be in it too. Thanks to Raymond Humphrys, who told me about that. Raymond was using GHL in all forms, but just one form (working with GHL properly) sometimes was giving these "Invalid Dynamic... Expression" messages on the form closing. This is really the grid issue, not GHL issue, but some extra code in GHL can make the grid destroying process more reliable.

Since on the form closing GHL gets destroyed before the grid, the code in GHL Destroy() method will reset all Dynamic... expressions to nothing, so when the grid in turn gets destroyed there will be no Dynamic... expressions sometimes causing grief.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform