Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi Select Grid and how can it be accomplished
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392005
Message ID:
00392801
Vues:
9
>>>>Bret,
>>>>
>>>>Rather than use a field as a flag you might want try using recno() and a list of selected record numbers kept in a property of the grid. Much like the common technique of highlighting the current record in the grid, you can extend that to say iif inlist(recno(),listproperty)... highlight the record. You can even take that a step further by checking for the ctrl or shift keys and code it to emulate a list. HTH
>>>
>>>That is what I need is ideas. Thanks I will look at something like that and see if I can make it dance.
>>
>>You may want to use and array property for that, since INLIST() is limited with 24 items
>
>Hello Nick I want to employ the array method, but I am stuck with a small, but relavent question. The code that I am looking at sets the dynamicback color property of the column in the init of the grid. If I add an array property to the grid. I will be forced to use a statement like:
>
>.SETALL('DynamicBackColor', 'iif(ASCAN(THIS.PARENT.aRecNosSelected,RECNO()) > 0, ' + 'rgb(' + .cSelectedBackColor +'), ' + LTRIM(STR(.BACKCOLOR)) + ')',"column")
>
>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?

Hi Bret,

I will try to come up with the solution over the weekend.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform