Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check boxes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00390246
Message ID:
00390313
Vues:
9
>>>>>>Maybe I'm missing the obvious, but cannot check boxes be displayed on a report form?
>>>>>
>>>>>Bill Caton sent me this one day and should work for a report.
>>>>>
>>>>>set the report field font to "Wingdings" and in the code behind the field:
>>>>>
>>>>>IIF(myLogicalField, CHR(252), "")
>>>>>
>>>>>which gives a check mark when true and blank when false.
>>>>
>>>>I tried this and the character for wingding of a checkmark is ALT + 252. I can enter the following in the field IIF(lfinished, CHR(252), "") and it works, but I cant figure out how to show the ALT 252 If someone knows how to do this them the report will print a checkmark when run.
>>>
>>>Hi Bret,
>>>
>>>I don't quite follow the last part of your question. I've used this method on reports and it seems to work ok. Therefore, I don't think I understand your last statement.
>>>
>>>Bill
>>
>>I Bill I can get the report to show the wingding character for 252 (CHR(252), but the 'checkmark' character in my character map shows the keystrokes to be ALT 0252. So how do I incorporate the entry of the ALT in the IIF expression?
>
>I've always just used a field on the report with the field font name set to "Windings" and the IIF(...) returning the Wingding check mark character, i.e. CHR(252) . I've not had to mess with ALT. Am I missing something here?

Well if I left the code IIF(myLogicalField, CHR(252), "")

what prints out on the report is an arrow that points to the right, and not a check mark. When I looked at the chracter map, provided by windows, it showed the check mark to be not just ASCI 252, but ALT+252.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform