Click to See Complete Forum and Search --> : Why doesn't my function start?


Armagera
September 12th, 2004, 11:06 AM
for(i = 0; i < max; i++)
{

if (H1Subject == SubjectNumber [i])
{
*Candtotal = *Candtotal + SubjectTotal [i];
SubjectUse [i] = 1;
H1Yes = 1;
SubjNumber = H1Subject;

}
}


if (H1Subject > 0)
{
UpdateUseInd (&SubjNumber);
}



My UpdateUseInd (&SubjNumber) function does not want to start. The compiler is happy, no errors and the function is declared correctly. When I step through the program it does go into the if statement but it just do not want to go into the function. The SubjNumber is declared as an int. What can be my problem. It is in Builder 5.

_uj
September 12th, 2004, 11:12 AM
Well for the function to be called H1Subject must be greater than 0. Is it?

Marc G
September 12th, 2004, 01:01 PM
Not enough information for us to help...
What is UpdateUseInd?
If "if (H1Subject > 0)" is indeed true, the function will be executed.
Try a full rebuild, perhaps there are some out-of-sync debug files.