I still get the error:
m68k-palmos-coff-gcc -O2 -g -c dotbook.c -o dotbook.o
dotbook.c: In function `InitializeForm':
dotbook.c:118: parse error before `char'
dotbook.c:120: `d' undeclared (first use this function)
dotbook.c:120: (Each undeclared identifier is reported only once
dotbook.c:120: for each function it appears in.)
make: *** [dotbook.o] Error 1
Here is the code that is generating the error:
form = FrmGetActiveForm();
char x[2];
int num;
StrIToA( d, 25 );
if(location==1) {
FrmSetTitle (form, x);
}
FrmDrawForm(form);
It's just a test, and I'm new. what am i doing wrong?
"Nesse, Rustin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> 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:[EMAIL PROTECTED]
> >>
> >> 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 ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/