View Single Post
Old March 31st, 2003, 08:16 PM     #2 (permalink)
Morphios
Junior Member
 
Join Date: Mar 2003
Location: Florida USA
Posts: 18
Can I write the functions for this code like this, or have I completly gone in the wrong direction. I am having serious problems writing these functions.....Help!!


Code:
void BarrierType::SetCode(AnsiString NewCode)
{
    Code = NewCode;
    if NewCode == '4';
        NewCode = false;
    else
        NewCode = true;
}

Once again any help appreciated.

Morphios
Morphios is offline   Reply With Quote