Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
How to use a switch statement for checking single characters? The following code didnt work. Will switch statement take only integers as condition??
AnsiString check;
switch(check.TOInt())
{
case 'a': /*something*/
break;
case 'b': /*something*/
break;
case 'c': /*something*/
break;
.
.
}
How to use a switch statement for checking single characters? The following code didnt work. Will switch statement take only integers as condition??
AnsiString check;
switch(check.TOInt())
{
case 'a': /*something*/
break;
case 'b': /*something*/
break;
case 'c': /*something*/
break;
.
.
}