Hi Lee,

>From what I can tell, what you want to do is force the user to select
something from your list before you will allow them to leave the form by
hitting OK.  Assuming I understand what you're trying to do, what I'd
suggest is when you first draw the list, set the list selection to -1.
(That means there are no list items selected)  Then, when the user hits
OK, call LstGetSelection to determine which value they selected.  If
they didn't select anything (the function would return noListSelection
in that case), you can display a message to let the user know you want
them to select something.

I hope this helps,

DeAnna 

-----Original Message-----
From: Lee Cain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 1:24 PM
To: Palm Developer Forum
Subject: Popup list validation


Another newbie question:

Field validation for my various text fields is easy, I'm having trouble
validating my popup list tho.  The list is filled from a database, so it
can
change. I want to make sure the user makes some kind of choice from the
list
when they complete the form & hit OK.

Thanks!
Lee
[EMAIL PROTECTED]
www.raising-cain.com


-- 
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/

Reply via email to