Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recording decision based on fields in grid column
Message
De
21/03/2006 11:36:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01106247
Message ID:
01106253
Vues:
22
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform