Hi
This one might be easy for some of you but not for me. And that's the reason I'm asking it here.
KRC4 V8.3
I want to use and CHAR array in an SWITCH statement. And I read the manual and it should be possible to use CHAR with and SWITCH statement.
So a wrote an basic code like this just for testing it out.
DECL cStatus[80]
cStatus[]="full"
SWITCH cStatus[]
CASE "full"
;
; bla bla bla
;
CASE "empty"
;
; yea yea yea
;
CASE "done"
;
;
;
DEFAULT
;
;
ENDSWITCH
When I load the code to robot it keeps complaining about syntax errors... Changed code according to the errors but when I got some errors to disappear, new ones occurs.
Did an other test using integers and it worked fine. No problems...
Can anyone give me some working examples? Or at lest tell me what I'm doing wrong.
I'll could use normal IF statement but it would be much more conveniently to use SWITCH.
-zicki