Use MenuPick properly

Sri sritcp at
Sat Feb 7 17:43:04 EST 2015

-- Here's using an array

put revDataFromQuery(tDataBaseID, "SELECT <displayItem>, <storeItem> FROM
<tableName>") into tArray
  -- Note that displayItem is what you want to display in the menu,
storeItem is the corresponding value you want to store; the data is not an
array yet.

split tArray by return and tab
  -- now, tArray has displayItem as the array key and storeItem as the array

-- Now you can display the keys of tArray in the menu in the order you like
-- and save tArray[chosenMenuItem] in the database.


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the use-livecode mailing list