janosandi
Full Member level 4
hello guys
i have a function which assigns values to varibles
it works when i call it from anywhere in the main function But when i call it from an If statement it gives me errors
when i put 'Dopen()' anywhere it works & get values fom there
but with if it gives me this error
(undeclared identifier'Dopen' in expression
what i should declare it? or is there is something like Gosub or call in mikroC?
thx for help
John
i have a function which assigns values to varibles
Code:
void Dopen() {
Digitt1 = 0;
Digitt2 = 16;
Digitt3 = 14;
Digitt4 = 19;
Code:
if(PORTB.B0 == 0) {
Dopen()
}
but with if it gives me this error
(undeclared identifier'Dopen' in expression
what i should declare it? or is there is something like Gosub or call in mikroC?
thx for help
John