dim. 03 février 2013, 18h56
Gregory
atoutfox.public.association
Re: Remplir une "Grid" à partir d'un tableau ?
Salut Jean,
(1) Je lis: Using SPACE(0) might not preserve all the grid settings that you want
(2) La reponse a ta question, tu la trouveras en faisant
?space(0)==''
Mais, je t’encourage a essayer et nous donner le resultat
Gregory
"Jean à Grenoble" <jsm.maurice@wanadoo.fr> wrote in message news:kelpns$1gj3$1@news.niouzes.net...
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 a different structure than the previous source, Visual FoxPro resets column settings, such as the width and font, to their default values. When you want to preserve the previous settings, for example, in scenarios when the new record source has the same structure as the previous one, you can use the SPACE( ) function set the RecordSource property temporarily to SPACE(0).
Note
Using SPACE(0) might not preserve all the grid settings that you want. You might 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
Journal

Francis Faure pense que ce message est la bonne réponse ou qu'il est utile
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000010974