How many visible items are there?
-----Original Message-----
From: Steve K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:10 PM
To: Palm Developer Forum
Subject: LstSetListChoices
It has been a few days and I have not heard on this, so I thought I would
post again.
I am trying to set the choices in a list using LstSetListChoices, and know I
am getting very close to getting it to work.
I call my function to populate the list and I receive no error and I get no
data displayed in my list.
Here is the function.
static char* gPlateString =
"PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0";
static char** gListString;
MemHandle gStringH;
static Boolean PopulateList(FormType* frmP, ListType* lstP)
{
gStringH = SysFormPointerArrayToStrings(gPlateString, 6);
gListString = (char**)MemHandleLock(gStringH);
LstSetListChoices(lstP, gListString, 6);
MemHandleUnlock(gStringH);
return true;
}
...
case frmCloseEvent:
MemHandleFree(gStringH);
break;
tia,
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
------------------------------------------
The information in this transmittal and any attachments are confidential and intended
only for the recipient(s) listed above. You are hereby notified that any unauthorized
distribution or copying of this transmittal or its attachments is prohibited. If you
have received this transmittal in error, please notify invivodata immediately at (831)
438-9550.
------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/