Calling procedure

  • Thread starter Thread starter simonZ
  • Start date Start date
S

simonZ

I have procedure:

void bindDataGrid(){

........

//inside I try to call other procedure:

bindAdvType()

}

void bindAdvType()

{

..............

}

But I get an error :



Unreachable code detected.

Any ide why?

Regards,S
 
Hi Simon,

If you double click on the error, does it take you to the line that
caused the error? It might give you a better indication of where to
look.

You usually get this error when a piece of code can never be reached,
for example:

return retVal;
anotherStatement(); // can never be reached

or:

if (1 == 0)
{
doSomething(); // can never be reached
}

HTH,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top