Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid goes blank
Message
From
12/05/2005 05:49:28
 
 
To
11/05/2005 19:49:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01013064
Message ID:
01013292
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform