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:
00393285
Vues:
19
>>>
>>>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 it did not like the cFullGridHierarchy statement as I dont think the form is fully init'd at that point. But if I changed the above code to:

lcFullGridHierarchy = ALLTRIM(SYS(1272, THIS))
lcFullGridHierarchy = 'THISFORM'+SUBSTR(lcFullGridHierarchy,AT('.',lcFullGridHierarchy),LEN(lcFullGridHierarchy))

Thus replacing the form name in the cFullGridHierarchy to THISFORM, then the DynamicBackColor statement took OK.

Thanks for your help, I am on my way to a multi-select grid that uses an array versus changing the underlining table to track selections.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform