Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rowsource not visible
Message
De
15/10/1997 17:07:20
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
14/10/1997 19:14:59
Glenn Shimabukuro
State of HI, Dept of Health, Dd Division
Pearl City, Hawaii, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00052473
Message ID:
00054770
Vues:
37
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform