Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using forms with classes
Message
From
13/12/2003 09:10:40
 
 
To
13/12/2003 05:59:11
Paul Trimming
Lonely Pilgrim Shareware
Merstham, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00858883
Message ID:
00858893
Views:
12
This message has been marked as the solution to the initial question of the thread.
>IN THE TEST2 INIT FORM METHOD
>WITH THISFORM.Grid1
>* update the grid record / control source
> .RECORDSOURCE = THISFORM.tempfileAlias
> .column1.CONTROLSOURCE = exp1table1.fldnumber1
> .column2.CONTROLSOURCE = exp1table1.fldpet
>ENDWITH

Trimtrom,

Simply, add your table to the DataEnvironment, then either set the properties in the Properties Sheet or in code:
WITH THISFORM.Grid1
   * update the grid record / control source
   .RECORDSOURCE = exp1table1    && alias to your table
   .column1.CONTROLSOURCE  = exp1table1.fldnumber1
   .column2.CONTROLSOURCE  = exp1table1.fldpet
ENDWITH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform