question re mobilePick

Ralph DiMola rdimola at
Thu Apr 30 17:23:05 EDT 2015

I believe that you must use a style of "checkmark" for initialIndex to work.

1-based means if:
line 1 is "picked" then 1 is returned.
line 2 is "picked" then 2 is returned...

0-based means if:
line 1 is "picked" then 0 is returned.
line 2 is "picked" then 1 is returned.....

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf Of William Prothero
Sent: Thursday, April 30, 2015 3:09 PM
To: How to use LiveCode
Subject: question re mobilePick

I am using mobilePick to select from a list of data, in iOS. I can’t seem to get the initialIndex to work. The API Dictionary says:

initialIndex - The (1-based) index of the item to be initially highlighted.   

I was assuming that this was just the line number of the optionList, but since it doesn’t work, I figure it must be something else. What dos that line mean? What is a "1-based" index?


William A. Prothero

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list