You need to make the characters into strings.
Ex.
Char d;
becomes
Char d[2];
or something like that, then:
Int a;
StrIToA( d, 25 );
a = StrAToI( d );
The thing is, you need a string for numbers that have more
than one digit in them. Char d just doesn't cut it.
What you're passing in to StrIToA and StrAToI is a CharPtr,
or string name.
-Rus
>-----Original Message-----
>From: Faisal Amlani [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 28, 2000 3:39 PM
>To: Palm Developer Forum
>Subject: Re: Integer conversion
>
>
>I keep getting a parse error before "char";
>"Nesse, Rustin" <[EMAIL PROTECTED]> wrote in message
>news:19142@palm-dev-forum...
>>
>> Well, you could use StrIToA or StrAToI, both diagrammed in
>> the Reference. You'll want to make your characters into strings,
>> though, or cast them or something.
>>
>> -Rus
>>
>> >-----Original Message-----
>> >From: Faisal Amlani [mailto:[EMAIL PROTECTED]]
>> >Sent: Friday, July 28, 2000 2:46 PM
>> >To: Palm Developer Forum
>> >Subject: Integer conversion
>> >
>> >
>> >Is there an easy command to convert an integer to a charager?
>> >i.e. 1 to "1"
>> >and 42 to "42".
>> >
>> >FrmSetTitle (form, "Set # ");
>> >
>> >And I want to append the string with the number so the
>title gives the
>> >number "set" the user is currently accessing of the database.
>> >
>> >
>> >
>> >--
>> >For information on using the Palm Developer Forums, or to
>> >unsubscribe, please see
>http://www.palmos.com/dev/tech/support/foru>ms/
>> >
>>
>>
>
>
>
>--
>
>For information on using the Palm
>Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/foru>ms/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/