Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't add an 'extra' column to a grid
Message
From
29/04/1998 05:52:23
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095610
Message ID:
00095626
Views:
26
Jess,

I had thought about the solution that you mention, but I was desperately trying to resist going down that particular avenue. David (Frankenbach) has, however, come up with a brilliant solution. Create a view to return the fields that you need, and add an extra column(s) to the field list. In my case I just add a .F. to the list of things to select. The SQL then looks something like:

SELECT product_name, product_description, .f.

Unlike selecting into a cursor, when the view is executed, the extra column(s) in the view are read/write, so the checkbox is quite happy to be bound to it, and the values are retained as long as the view is open. No need for temporary tables!

I think that this is a great 'trick' to add to the arsenal.<g>

>If thats the case then the absolute remedy is to create an extra field for checkbox bounding. The problem again this time is multi-user issues, because what if more than one user activated the same module of selection ? And so, your dbf filename should be unique to every user. We use SYS(2015) for that matter.
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Previous
Reply
Map
View

Click here to load this message in the networking platform