ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Remplir une "Grid" à partir d'un tableau ?   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

dim. 03 février 2013, 14h46
Jean à Grenoble
atoutfox.public.association

Re: Remplir une "Grid" à partir d'un tableau ?


Bonjour Gregory,

je viens de relire l'aide sur RecordSource (VFP9) :

When you are working with grids, you might sometimes need to change or query the*RecordSource* property again at run time. Because the new source might have adifferent structure than the previous source, Visual FoxPro resets columnsettings, such as the width and font, to their default values. When you want topreserve the previous settings, for example, in scenarios when the new recordsource has the same structure as the previous one, you can use the *SPACE( )*function set the *RecordSource* property temporarily to |SPACE(0)|.

NoteNote

Using |SPACE(0)| might not preserve all the grid settings that you want. Youmight need to reset some settings in code after setting the *RecordSource* property.


La question maintenant est de savoir si pour la propriété .recordSource

grid1.RecordSource = SPACE(0)

a un comportement différent de

grid1.RecordSource = ""

!!

Bonne fin de dimanche à tous
Jean

Permalink : http://www.atoutfox.org/nntp.asp?ID=0000010973
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3