Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid goes blank
Message
De
12/05/2005 05:49:28
 
 
À
11/05/2005 19:49:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01013064
Message ID:
01013292
Vues:
17
PMFJI but

I agree totally with this approach. But as there are often so many "sub-properties" of each column to set, I'd make it more readable (and more efficient) by:
with thisform.grid1.
   recordsource        = 'tablename'
   With Columns(1)
     .FontBold         = .T.   && example of extra prop might want to set
     .controlsource    = 'fieldname'
     .width            = 80
     .header1.caption  = 'Customer'
     .Header1.FontBold = .T.   && e.g. again
     .Text1.Visible    = .T.   && Need to make objects visible too, I think.
   EndWith

   With Columns(2)
     ... etc.
   EndWith

   .refresh()
endwith
Cheers

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform