Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & Memo and other problems...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227549
Message ID:
00228532
Vues:
18
Hi Bruce,

Same result... - blank grid.
>
>And if you comment out that part of the code, the grid appears fine?

Right. If I comment it like this:

*!* if TYPE(lafieldlist[i])="L"
*!* lbValue=&lafieldlist[i]
*!* lcValue = "IIF(lbValue,'N','Y')"
*!* This.columns(i).controlsource=lcValue
*!* else
This.columns(i).controlsource = lafieldlist[i] && Assign controlsource
*!* endif

the grid appears fine.

>I'm not sure how much flexibilty you want, maybe you could use Controls() collections in form, page, etc....

Could you please be more specific here? What do you mean?

if you need more flexibility than that, maybe you're on the right track with your idea...

My idea - return back to the control, which had focus before I clicking on one of my navigation buttons (set order, set filter, next, prev, search, etc.).

I am not pretty sure that my idea is correct, because I need:

1) set PrevFocus of most of my controls LostFocus method (could it be done by one command?)

2) In all my navigation buttons LostFocus (right? or it should be in the click event?) event place code

If Not empty(PrevFocus)
THISFORM.&PrevFocus..SetFocus()
endif

Am I right?

So, we need to change our classes this way, right? So, I have another question - how can I check that this property exists on my form? Because I can not assign if the property doesn't exist...


>Also, I don't usually recommend using Valid, but it has the ability to move backward using negative numbers...

Thanks
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform