Just playing around trying different options and I thin it may be as simple as:

on openCard
           put revDataFromQuery(tab, return, the uDB of stack "THFinancials", 
"select categoryName from 'categoryList' order by categoryName asc") into 
tCatNames
           set the text of cd btn "CategoryMenu" to tCatNames
           set the menuHistory of cd btn "CategoryMenu" to 1
           send "menuPick " & line 1 of tCatNames to cd btn "CategoryMenu"
end openCard

Ensuring that you set the menuHistory BEFORE send “menuPick”.

My wife's on my back, as we are going out soon but on first try I think this is 
it.

If it is a note in the Docs would be a good thing.


All the best

Terry


_______________________________________________
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

Reply via email to