Hello all....
        
        Just starting out on PP development and already discouraged. I wrote
a small function MsgBox that basically is an Alert ( which is analogous to a
MessageBox in windows if I am not wrong). So, here is my code:

        ...
        MsgBox("MsgBox Title","true = [%d] false = [%d]",true,false);
        foobar(true);
        foobar(false);
        ...

void foobar(Boolean bFlag)
{
        if(bFlag== true)
                MsgBox("MsgBox Title","Boolean bFlag= [true]");
        else if(bFlag== false)
                MsgBox("MsgBox Title","Boolean bFlag= [false]");
        else
                MsgBox("MsgBox Title","Boolean bFlag= [unknown]");
}


Anyhow, I have a function call foobar which take a bool.  When this code
executes, the first MsgBox produces the text:

true = [1] false = [0]

this is expected behaviror....
then the first foobar function produces

Boolean bFlag= [false]   <<<<<< this is wrong btw

then the next foobar function produces the same.

Boolean bFlag= [false]

... Now what am I missing? Does this damn unit not pass parameters correctly
or as a newbie, am I doing something wrong?
Please help before I test the PSI of this unit!

tia
Ralph Krausse



Reply via email to