Thanks..still trying to interpret the SDK Reference book to actual
coding..which is where the redeclaration came from on the StrIToA command.
So, you are saying about declaring s to be a pointer or array would be
required. Would it be ok to declare s a pointer like the following?:
static Char s[26];
Thanks again!
jim
Ben Combee <[EMAIL PROTECTED]> wrote in message
news:45944@palm-dev-forum...
>
> > *******************
> > Compilation Error:
> >
> > Compiling frmMain.c...
> > frmMain.c: In function `ShowIFCMainData':
> > frmMain.c:58: warning: passing arg 3 of `FrmCopyLabel' makes pointer
> from
> > integer without a cast
> >
> > ******************
> > Program
> >
> > static void ShowIFCMainData()
> > {
> >
> > // GetMainFrmData(SysAlarmsDB);
> >
> > static Char s;
>
> This declares s as a single character variable, which is an integral
> value.
>
> > // Get a pointer to the active form:
> > FormType *form = FrmGetActiveForm();
> > // Get the indices of the labels:
> > UInt16 SysAlDispIndex = FrmGetObjectIndex(form, lblSysAlDisp);
> >
> > // Set the value of the lblSysAlDisp label:
> >
> > Char* StrIToA (Char* s, Int32 SysAlarmsDB);
>
> This doesn't call StrIToA, it redeclares it. You need to instead say
>
> StrIToA(s, SysAlarmsDB);
>
> Of course, you also need to declare s properly as a pointer to char or
> an array. If you do the pointer, you also need to allocate space for
> the string.
>
> >
> > FrmHideObject(form, SysAlDispIndex);
> > FrmCopyLabel(form, lblSysAlDisp, s); <-- (Line 58)
> > FrmShowObject(form, SysAlDispIndex);
> >
> > }
>
>
> --
> Ben Combee, [EMAIL PROTECTED]
> Techwood Broadcasting Foundation, Austin Bureau
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/