Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi Select Grid and how can it be accomplished
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00392005
Message ID:
00393265
Views:
16
>>>
>>>This does not seem to work as I think the THIS.PARENT.aRecNosSelected is undefined in the init of the grid. So when the 'DynamicBackColor' is set the statement comes back as invalid. My guess is that when the 'DynamicBackColor' is set it evaluates it then and there, so the THIS.PARENT reference would not work.
>>>
>>>Any ideas?
>>
>>Hello Bret,
>>
>>The solution is here. :) What I found, that by some unknown reason DynamicBackColor expression didn't like
>>
>>ASCAN(This.Parent.aRecNosSelected,RECNO()) > 0 in IIF expression, but it works
>>
>>OK if you address it as:
>>
>>ASCAN(thisform.Grid1.aRecNosSelected,RECNO()) > 0
>
>That works, but I need to ensure that I can work this grid into a class. So I cant rely on THISFORM.Grid1 I need it to be flexible enough to know where it is and thus set up the dynamicbackcolor correctly. So lets say the user placed the grid class on a page frame. It needs to set up automatically knowing where it is in relation to the thisform. I am working on that now, but if you can come up with some code off the top of your head, then please send it along. Thanks for your help here.

You can easily get full object hierarchy on the fly with

cFullGridHierarchy = SYS(1272, this)
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
Next
Reply
Map
View

Click here to load this message in the networking platform