I'm sorry to ask such a basic C question but my reference books are all at
home. Why doesn't the following work.
Char * string;
.
. // string copy here
.
switch(string)
{
case 'Some value':
// do something here
break;
.
.
.
}
I receive the following compile error
Error : illegal operand 'char *'
PlugIn.c line 718 switch(string)
Error : illegal character constant
PlugIn.c line 720 case 'Some value':
It appears that switch/case only allow 1 character. Is there another form
of switch/case (other than using "if") for string values?
Dave
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/