From: Dougal C. <do...@gu...> - 2001-02-05 21:01:11
|
On Mon, 5 Feb 2001, Doug Melvin wrote: > To the best of my knawledge, ANY non-zero (or non-null) value > equates to true. so, IMHO, the two statements are the same For *most* purposes they are the same, but 0!=null, and there are cases where that is important. There are lots of places in the DynAPI2 code that test specifically for null for a reason. Especially when testing width, height, x, y types of values, where zero is a valid value, but a null value isn't. It's all a matter of context for the variable being examined. -- Ernest MacDougal Campbell III, MCP+I, MCSE <do...@gu...> http://www.gunters.org/~dougal/ Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/ This message is guaranteed to be 100% eror frea! |