Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rowsource not visible
Message
De
16/10/1997 21:13:13
Glenn Shimabukuro
State of HI, Dept of Health, Dd Division
Pearl City, Hawaii, États-Unis
 
 
À
15/10/1997 17:07:20
Bob Lucas
The WordWare Agency
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00052473
Message ID:
00055072
Vues:
34
>>>A form I have has 'somefile.dbf' in its data env. but under the properties section there is no mention of a rowsource etc.
>>>I want this form to accomadate files of different names but same structures.
>
>This is actually very simple to accomplish. The difficulty you may have is that you cannot define a recordsource for your grid in your form layout because the recordsource may not exist when the form is called. You will have to pass the recordsource name to the init method and set it there. You will also have to set the controlsource information. Something like this:
>
>WITH this.grid
> .setall("FontSize", 8, "Column")
> .setall("DynamicBackColor", "iif(!c_grid.cursordata,rgb(255,255,255),rgb(255,0,0))", "Column")
> .setall("DynamicForeColor", "iif(!c_grid.cursordata,rgb(0,0,0),rgb(255,255,255))", "Column")
> .recordsource = 'c_grid'
> .column1.controlsource = 'c_grid.cdisplay'
> .column2.controlsource = 'c_grid.effectivedate'
> .column3.controlsource = 'c_grid.cexpirydate'
> .column4.controlsource = 'c_grid.createddate'
>ENDWITH


Hi Bob,

Thanks for another way at looking at this problem. I guess this
set of codes should be embedded in the page that will contain the
grid ... assumming that a page frame control will be used.

I'll try it out ... thanks again.


Glenn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform