Hi Jim, I did not get the iphonePick listOfData, curIndex to work.
Instead I used a workaround that may or may not suit your needs. Make a list field (you already have that) and overlay that with a option menu button in front of it. set the blendlevel of the option menu button to 100 to make it transparent. Set the script of the option menu button to -------------------------- on mouseDown put field "List of Data" into tData put the hilitedLine of field "List of Data" into tHilite set the text of me to tData if tHilite is not "" then set the menuHistory of me to tHilite end mouseDown on mouseUp put field "List of Data" into tData put the label of me into tLabel put lineOffset (tLabel,tData) into tNewSelection set the hilitedLine of field "List of Data" to tNewSelection end mouseUp ---------------------------------------- now if you seem to click into the list field you actually trigger the option menu button This button is populated by the content of the list field and its hilitedLine on the fly. The hilitedLine becomes the default of the pick wheel. Now if you make a choice on the click wheel this will hilite the appropriate line in the list field. (or do with the label whatever you want) This is an ugly hack and whether it works for you depends on what exactly you are trying to do. Apparently in this lesson: http://lessons.runrev.com/spaces/lessons/buckets/1004/lessons/22980-How-do-I-use-the-Picker-View-on-an-iPhone- they could not either figure it out how it returns a value. They did not even attempt to do it. That may be the reason why they spelled: England Sctoland Taiwan ... I hope Richmond does not find out about this. :) kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-pickWheel-woes-tp3075810p3076990.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode