I having problem with displaying data in a label.  I am able to display
integers converted to ascii that are only 1 digit long.  However, whenever I
have a double or greater digit number to be displayed, my code gets
corrupted and causes mega fatal errors.

Here's my code that maybe someone can help me out.

static UInt32 ReadDBArray[5];

static void ShowData()
{
          Char tempdata[10];

          ReadDBArray[1] = 42;


          // Get a pointer to the active form:
          FormType *form = FrmGetActiveForm();
          // Get the indices of the labels:
          UInt16 TitleDispIndex = FrmGetObjectIndex(form, lblTitleDisp);


          // Set the value of the lblTitleDisp label:
          StrIToA(tempdata, ReadDBArray[1]);
          FrmHideObject(form, TitleDispIndex);
          FrmCopyLabel(form, lblTitleDisp, tempdata);
          FrmShowObject(form, TitleDispIndex);
}

Is there something that i'm issing but shouldn't StrIToA convert my double
digit number into 2 ascii characters with a null?  Or, am i totally off base
here.

Thanks!

Jim

**************************************************************
James P. Garozzo
Connectivity Engineer
White-Rodgers - Affton, MO
Phone: 314.577.5201
Fax: 314.577.5248
E-mail: [EMAIL PROTECTED]
**************************************************************




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to