Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check box in the report
Message
De
30/10/2018 11:08:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01662935
Message ID:
01662943
Vues:
35
>>>>>I have an old report that shows a checked box (if a certain field has value True). When I open this report in the VFP Report Designer, the textbox (used for this control) has expression:
>>>>>
>>>>>iif( Passed, "p", "")
>>>>>
>>>>>
>>>>>The value of "p" above is actually some high or low ASCII character but it kind of looks like "p" or "b". What CHR() should I replace it with to make sure that I can edit it later?
>>>>>
>>>>>TIA
>>>>
>>>>Some fonts have checkboxes, for instance "Wingdings 2" where chr(81) is crossed, chr(82) is checked and chr(163) is unchecked.

You can use the solution above, with the "Wingdings 2" font.

>I think you are right. Even when I replace the "p" with CHR(254), I see this characters in the report, at run time.
>
>How do I make the Check Box symbol appear in the report instead of the character "p"?

Or, you can use two bitmaps which are printed when the condition is true or false (true for the checkbox being checked, false for when the checkbox should be cleared).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform