Randy,
The code samples was from an old example (pre Palm OS 3.5). Palm has since
changed the data types.
Word -> UInt16
VoidHand -> MemHandle
VoidPtr -> MemPtr
Here is a reference
http://oasis.palm.com/dev/kb/manuals/1544.cfm
Paul...
----- Original Message -----
From: "Randy Brown" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 8:47 AM
Subject: Re: [?] Plugging List text into a Field
> Paul -
>
> Thanks for the rapid reply. Unfortunately, I have one more problem.
(Only
> one, yeah... sure.... ;-)
>
> The compiler (GCC) doesn't like "Word", "VoidHand", or "VoidPtr." I
> currently have <PalmOS.h> and <SysEveMgr.h> in my #include(s). I've
> searched the FAQ and KnowledgeBase (yes, I'm researching before posting -
> trying to be a good citizen). But haven't been able to find (yet) what
> else needs to be in the #include. <MemoryMgr.h> doesn't have these guys
in it.
>
> Again, asking for assistance.
>
> TIA.
>
>
> At 07:41 AM 02/19/2001 -0800, Paul wrote:
> >Use LstGetSelectionText to the text of a list item.
> >
> > pObj1 = GetObjectPtr(pForm, iListID)
> > LstGetSelectionText(pObj1, iSelection) // Returns a pointer to the
list
> >text
> >
> >
> >Then use a function like the following to place the text into your field
> >
> >static void SetFieldText(Word FieldId, char *Str) {
> >
> > VoidHand hTextNew;
> > VoidHand hTextOld;
> > VoidPtr pField;
> > FormPtr pForm;
> > FieldPtr fpField;
>
> [rb}
>
> http://www.randybrown.net
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/