Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BYTE Fields 1

Status
Not open for further replies.

wchestnut

Programmer
Aug 9, 2010
79
US
Hello, again!

Is there an easy way to change a 0 and 1 BYTE values or the Checkbox to something like 'Yes' and 'No' on report (and a field in a Browse)? The Picture function doesn't seem to support BYTE fields.

I added the field to the Detail section and tried to set "True Value" and "False Value" respectively but it still shows a checkbox on the report which doesn't make sense to me. According to the Help, that should work:

"True Value and False Value let you easily manage legacy data with a check box, or let you use character values such as "T" and "F" or "Yes" and "No" where appropriate.
 
Hi!

No. You need to use a Local variable to achieve your objective.

ByteColumn BYTE

LocalVar STRING(3)


LocalVar = CHOOSE(ByteColumn, 'Yes', 'No')

Regards
 
Interesting... this language syntax is different from the others I've used. Thanks, again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top