You have the prototypes for StrIToA and StrAToI mixed up. If you are using CW, you can right click on the function name and go to the function declaration in the header file. Otherwise look at the API reference.
-----Original Message----- From: Jay Francis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 9:24 AM To: Palm Developer Forum Subject: converting int to string I'm reading a record from the database. Some of the fields from the structure are strings and some are integers. Converting the integers to strings so I can populate a form isn't working. I am scratching my head. It's like the code doesn't understand I'm trying to convert. I get the same error message whether I eliminate the StrIToA function or not. Char * waterString; waterString = StrIToA(rec->waterbody); Error : illegal implicit conversion from 'unsigned short' to 'char *' Information.c line 17 waterString = StrIToA(rec->waterbody); This code works right below it but rec->surveyDate is a * Char waterString = rec->surveyDate; I've used the StrIToA function when converting integers to strings so they can be displayed in a custom alert before. Also the value of rec->waterbody is correct when viewed during the debugging process. I realize it's probably something stupid. Thanks for your help. Jay -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
