Board index » cppbuilder » bools from hell.
Richard
![]() CBuilder Developer |
bools from hell.2007-11-27 08:32:42 AM cppbuilder62 In the Borland help section it states that we can use bool, true, and false. Is this restricted to C++ only? bool Running; <---- syntax error bool MyBool; <----multiple bool declarations Running = false; < I don't remember but an error here as well. If I try.... BYTE Running; Running = true; < then I get an error here as well. So, I made some constants called: const BYTE TRUE = 1; const BYTE FALSE = 0; well, you already know what happens... It compiles fine, but it sure doesn't run like I would expect. Oh, they are reserved keywords.... Hum. So what gives? How in the world do I use something as simple as booleans? Seems pretty straight forward in every other language I used so I must be over looking something. Richard |