Ken's right.  Specifically, you *can't* use LstGetSelectionText with a
dynamic list, so don't.  Use your own code to determine the value.  This
shouldn't be hard, as it's effectively the same code you're using in your
*DrawList function.

Alan

"kcorey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Sun, 2003-08-03 at 00:32, [EMAIL PROTECTED] wrote:
> > I've got my list generating dynamically... HOORAY! However now
> > I'm trying to get the text that the user selects...
> >
> > I'm not sure what I'm doing wrong in the text memory allocation side
> > of things or how to do it properly anyways...but I know that's my
> > problem...
>
> Not sure what your 'GetObjectPtr' function does...perhaps it's not
> returning the correct ListType *?  Does it do a
> FrmGetObjectPtr(formPtr, FrmGetObjectIndex(formPtr, objectID)) at its
> heart?
>
> Are you checking the return values that these functions are returning?
> If one of these functions fails for whatever reason, perhaps there's a
> clue there.
>
> Another thought, though...if you're having trouble reading from the
> list, why try to read from the list?  If you have it dynamically loading
> correctly, those strings need to be available to you in some other way
> (database, string array, string resource...something) so why not read
> them from the same location?
>
> -Ken
>
>
>
>



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

Reply via email to