<?xml version="1.0" encoding="windows-1252"?>
<node id="969323" title="Re: perltk: error getting values from dynamically generated combo boxes" created="2012-05-07 16:05:36" updated="2012-05-07 16:05:36">
<type id="11">
note</type>
<author id="629110">
SuicideJunkie</author>
<data>
<field name="doctext">
&lt;blockquote&gt;Tk::Error: bad listbox index "": must be active, anchor, end, @x,y, or a number at /usr/intel/pkgs/perl/5.8.5/lib/site_perl/5.8.5/x86_64-linux/Tk.pm line 247&lt;/blockquote&gt;
&lt;p&gt;So.  You're giving a listbox index that is either an empty string or perhaps &lt;c&gt;undef&lt;/c&gt;.  The solution is to not do that :)&lt;/p&gt;
&lt;p&gt;Try printing out the values you're using, and then see where the bad value is coming from.&lt;/p&gt;
&lt;p&gt;You could also make a temporary tweak to Tk.pm, and have it &lt;c&gt;confess&lt;/c&gt; instead.&lt;/p&gt;</field>
<field name="root_node">
969316</field>
<field name="parent_node">
969316</field>
</data>
</node>
