> if a string is defined as a ChrPtr, is that still equivelent to a
> string where I can still access the character elements seperatly as an
> array? I have my ChrPtr var1 which is always going to be the size of 5
> chars I would like to access the chars seperatly..how do I do that..?
> if I try something like, where X is another ChrPtr, it keeps
> complaining that it's an illegal operand..
There is no problem using a ChrPtr as an array of Chars. ChrPtr is nothing
more that a synonym for Char*, that is a pointer to a Char.
> for (i=0; i<5; i++){
> if (var1[i] =! x){
> ...}
> ..
> }
What's wrong here is that you wrote '=!' instead of '!=', causing this
"illegal operand" you get.
--
Jean "Khali" Delvare
mail: [EMAIL PROTECTED]
http://www.ensicaen.ismra.fr/~delvare/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/