Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid columns losing controlsource property
Message
De
28/04/2006 19:22:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/04/2006 13:00:16
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01117583
Message ID:
01117727
Vues:
23
>When in grid design mode (VFP8 SP1) I often omit the 'cursor.' prefix in column.controlsource to give me the flexibility to change the recordsource without having to adjust column properties. I change the recordsource at design-time all column.controlsource values are lost, even though the same field is present in the new recordsource. Is there any way of preventing this?
>
>I have experimented with a grid property .ColumnSourceList which contains a comma-delimited list of fields in column-display order (ie. field1,field2,field3,...). This list is parsed in grid.init and each column.controlsource loaded as appropriate. This works fine until I want to use a function in the list, and the function includes commas to separate arguments (eg. field1,field2,IIF(condition1,1,2),field4), which throws the parsing out completely.

Then use something else for a separator - a semicolon or a bar.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform