Simple question!
Hello,
Hope you are all having a nice day!
My question is of the most simplest nature, as I may ask to be excused! but
........ I just can't seem to see it!
It's been two hours... and I sort of feel like I am wasting my time... so if
I may politetly post it!
Please consider the following *simple* snippet of code:
==================================================
void A_TMR::setTMR( int iTimerID, int iMilliSeconds, int iTmrPulse,
int iFB_TimerID, int iFB_MilliSeconds, bool bFB_TmrPulse,
int iCF1, int iCF2, int iCF3, HWND hwnd, IO *io)
{
int i_TimerID;
int i_FB_MilliSeconds;
//Declare pulse variables
static bPulseT1;
static bPulseT2;
static bPulseT3;
bool bSetTmrPulse;
bool bSkip = false;
....other code... but currently commented out!
if(bSkip) //The tmr pulse is not a rising edge, so skip everything
goto SKIP;
....other code... but currently commented out!
if (bSkip) //The timer is still busy with previous timing, so skip all
goto SKIP;
SKIP: //*****ERROR POINTS HERE!*****
}
============================================
The following error points to the last line of my code:
c:\_DTS_PROGRAMMING\C_PROGRAMMING\vc++\MY_APPS_LAB\XPPLC\WndProc_ClassMethods.h(1078): error C2143: syntax error : missing ';' before '}'
I am embarrased to post such a question, but all "goto" examples of my books
show samples as above!
Can please someone help me resolve this pittyfull question!
My deepest thankyou's to all!
--
Best regards
Robert