From: Jason Mayer Date: 2006-12-27T23:15:37+09:00 Subject: Nuby: VisualuRuby, menutest.rb example with check boxes in submenus ------=_Part_83452_11336224.1167228935187 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm back to looking at visualuRuby, have two quick questions about this program: http://vruby.sourceforge.net/sample/menutest.rb Basically, I don't understand this line: @checking.checked = ! @ checking.checked? I added the following which gives me the desired results. if @checking.checked? @label.caption="checked" else @label.caption="unchecked" end First question: what does '= ! @variable' do anyway? I've never seen an example that did that. Second question: How can what I added be turned into a one-liner? ------=_Part_83452_11336224.1167228935187--