Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check box in the report
Message
 
 
To
30/10/2018 10:40:23
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01662935
Message ID:
01662938
Views:
41
>>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?
>
>I'm not 100% sure what you're asking, but you can find out what the CHR() value of anything is by using ASC("p"). It will give you the integer you'd use to feed into CHR().
>
>Also, using "" (SPACE(0)) for your return value in certain cases will compare to a string and return .T. when they're not actually equal. You may want to use " " (SPACE(1)) so it delineates more appropriately.

Thank you. Your reply is very helpful. Using ASC() I determined that my report is using chr(254). And I will implement the SPACE(1).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform