Chris, off the top of my head, I thought that LstGetVisibleItems returned the size of the list object on the screen, regardless of how many items are actually in the list. Are you sure you haven't done a LstSetHeight to overwrite the original value? Bob.

Chris Apers wrote:

Well, this will give me 0 again
What i need is the NumberOfItems defined at form creation
Even if the list is empty.

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Vladimir
Lozhnikov
Envoy� : mercredi 19 janvier 2005 13:14
� : Palm Developer Forum
Objet : Re: LstGetVisibleItems ?

Int16 wVisibleItems = LstGetNumberOfItems( ... ) < LstGetVisibleItems(
..) ? LstGetNumberOfItems( ... ) : LstGetVisibleItems(
..);



CA> I use LstGetVisibleItems to know how many visible items was defined with
a
CA> given list,
CA> but this function seems to return 0 if the list is empty.

CA> Is it possible to retreive this list info in any cases or should i add
empty
CA> items
CA> on the lists ?

CA> Thanks
CA> Chris






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

Reply via email to