Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Peter,
I had this problem too. Although I never figured out why subsequent queries misbehaved, I was able to automatically size the column widths. It was something like the following:
select
for m.x = 1 to fcount()
thisform.grid.columns( m.x ).width = fsize( field( m.x ) )
endfor
The one problem you may have is the field() function will return only the significant places for numerics. I worked around this by multiplying fsize( field( m.x ) ) by a constant.
Another option would be to use the AFIELD() function. This returns the significant and decimal portion of numerics to an array that you can then step through with a FOR/ENDFOR.
Good luck.
Ben
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement