Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recording decision based on fields in grid column
Message
From
21/03/2006 11:36:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01106247
Message ID:
01106253
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I have a table with 2 checkboxes in called Yes or No. I am completely constrained to somebody elses tables and I cannot change it. Therefore I have created a a form with a grid. On one of the columns I would like to display whether it say Yes, No or 'No Decision'. Therefore I cannot bind anything to my grid column.
>
>How can I display this in my column on my grid i.e. calculate which checkboxes have been checked?
>
>Many Thanks

Neil

For one, a table doesn't have checkboxes, it has logical fields or yes/no fields, for example. Is that what you mean?
Your grid can have a checkbox in a column too, instead of the default textbox.

You can do an SQL on the table like:

Select Field1, field2, IIF( field3=.T., "Yes", "No") as YesNoField, Field4 ....
into cursor ...

and have the cursor as the recordsource of the grid (bound columns and all).

or

Select Field1, field2, IIF( field3="Affirmative", .T., .F.) as LogField, Field4 ....
into cursor ...

Does this help?

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform