You may get a crash if the string length is more then it is maxChars value
of the field.
Anton
----- Original Message -----
From: Mark Kenny <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, March 27, 2002 4:57 PM
Subject: fldInsert Problem...
> Hello all...
> I was wondering how exactly i might be able to insert an item from my
> database into a field.
> This is my DB and i want to insert "Type" into a field to display it
>
> typedef enum Weekday{Sun, Mon, Tues, Wed, Thurs, Fri, Sat} Weekday;
> typedef enum ModuleType{Lecture, Tutorial, Lab} ModuleType;
>
> typedef struct ErrandDB {
> Weekday day; /* 0 through 6 for Sun through Sat */
> Char errands[257]; /* Free form text field, 256 characters
> allowed */
> ModuleType Type;
> } ErrandDB;
>
> typedef ErrandDB* ErrandDBPtr;
>
> I'm using:
>
> FldInsert(fldP, recP->Type, StrLen(recP->Type));
>
> This is flagging errors, it works fine for errands. i know it has
something
> to do with the way Type is declared but i can't figure it out...do i use
> fldInsert???
>
> Thanks for your time
> mark
>
> --
> 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/