Use it this way : StrIToA( waterString , rec->waterbody); Mahesh ----- Original Message ----- From: "Jay Francis" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 7:53 PM 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/ _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
