<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - check option in the try area - Comments</title>
 <link>http://community.activestate.com/forum-topic/check-option-in-the-try-a</link>
 <description>Comments for &quot;check option in the try area&quot;</description>
 <language>en</language>
<item>
 <title>check option in the try area</title>
 <link>http://community.activestate.com/forum-topic/check-option-in-the-try-a</link>
 <description>&lt;p&gt;I was trying to do something that should be simple, the thing is I have a Menu, it is working properly, and I want to add a check in one of the menu options, but I want a function that checks the real state of that option, and then return some value to the check.&lt;/p&gt;
&lt;p&gt;It is something like this&lt;/p&gt;
&lt;p&gt;sub test&lt;br /&gt;
{&lt;br /&gt;
#  checks the state of some information and returns  1 or 0&lt;/p&gt;
&lt;p&gt;   return $state;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;PopupMenu&lt;br /&gt;
{&lt;br /&gt;
return [&lt;br /&gt;
         [&quot;_ Checked&quot;, \$check, test],&lt;br /&gt;
        ]&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;But this does not work, it looks like &quot;test&quot; is executed just the first time, when the menu is displayed.&lt;/p&gt;
&lt;p&gt;Can someone help me ???&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/check-option-in-the-try-a#comments</comments>
 <category domain="http://community.activestate.com/forums/pdk-discussion-0">PDK discussion</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Mon, 30 Apr 2007 15:25:10 -0700</pubDate>
 <dc:creator>lampi</dc:creator>
 <guid isPermaLink="false">842 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
