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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BOOLEAN confusion

Status
Not open for further replies.

bv0719

MIS
Dec 19, 2002
131
US
Hello...

CR2008 - Have a formula ({@closed}) in the details section that returns a boolean True / False. I want to use the section expert to color the section if the formula is true. Tried entering {@closed} = "true". Program responds with "A boolean is required here" message.

Tried adding () around the formula, no luck. Tried using totext on the formula, no luck. What am I missing?

Thanks,
BV
 
duh... just figured it out.

if {@closed} = true then crsilver else nocolor

Sorry.
 
Also, to save coding, when you have a formula that evaluates to True or False, you don't have to use "= true" in your if...then statement. For your example, this would work just as well:

if {@closed} then crsilver else nocolor

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top