From: Mer Gilmartin Date: 2006-09-28T01:17:46+09:00 Subject: Re: Trying to understand menus in ruby/tk through examples Paul Lutus wrote: > Mer Gilmartin wrote: > >> Can anyone explain why with the first two 'command' lines >> the program works. but with the third 'command' line it doesnt? > > / ... > >> 'command' => proc { p "Load from database"; } >> add 'command' >> 'label' => 'Exit program', >> 'underline' => 0, >> 'command' => proc{exit} > There's not enough code to create a working example, so this is just a > guess, but I would ask where "exit' is defined. so the problem would be there? Ill check throught that tomorrow. Ill post it again if im still having problems. -- Posted via http://www.ruby-forum.com/.