Did you initialize the list to noListSelection before you pop up the list?



At 01:35 PM 15/10/2002 -0400, you wrote:
>Im trying to check to see if a selection is made from a list however even if
>one is not selected it still returns a index of 0... from examples it seems
>it should return noListSelection. Whats the deal???
>
>FormPtr form;
>
>ListType * lstCircuitVoltagePtr;
>
>form = FrmGetActiveForm();
>
>lstWireTypePtr = FrmGetObjectPtr(form, FrmGetObjectIndex(form,
>lstWireType));
>
>Int16 lstWireTypeSelection = LstGetSelection(lstWireTypePtr);
>
>Char * lstWireTypeText = LstGetSelectionText(lstWireTypePtr
>,lstWireTypeSelection);
>
>if(lstWireTypeSelection != noListSelection){
>
>//Rest Of Function
>
>}
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, 
>please see http://www.palmos.com/dev/support/forums/

John Leung
EMail: [EMAIL PROTECTED]
Web:   http://persweb.direct.ca/jleung/


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

Reply via email to