Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid columns losing controlsource property
Message
From
28/04/2006 19:22:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/04/2006 13:00:16
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01117583
Message ID:
01117727
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform