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!

Setting and reading boolean values

Status
Not open for further replies.

elizabeth

IS-IT--Management
Sep 16, 1999
1,196
US
Just saw this tip re: a question that was asked earlier (can't find it in the list):<br><br>Boolean values are <b>set</b> in this way:<br><br>False = 0<br>True = -1<br><br>But non-boolean types can be <b>read</b> as boolean values if desired. In that case,<br><br>False = 0<br>True = <i>anything <b>other</b> than zero!</i>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top