Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid goes blank
Message
From
12/05/2005 18:53:34
 
 
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:
01013659
Views:
13
thanks for the syntax here...

much nicer to read.



>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
Thanks,

Stacy



Black Mountain Software, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform