ja, du übergibst falsch!
du bindest an $bindSelectedValue und $bindSelectedTextlabel
, die jedoch nur in der sub definiert sind
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sub defineDBFieldsOptionMenu {
my ($top, $refbindSelectedValue, $refbindSelectedTextlabel, $optionSet) = @_;
my $opt = $top->Optionmenu(
-options => $optionSet,
-command => sub {
print "got: ", shift, "\n", "val: $bindSelectedValue\n";
print "hashval: " . $obj->{'entryFrame'}->{'feld'}->{'bindSelectedValue'} . "\n";
},
-variable => $refbindSelectedValue,
-textvariable => $refbindSelectedTextlabel
);
return $opt;
} # /defineDBFieldsOptionMenu
defineDBFieldsOptionMenu ($top, \$value, \$label, $options);
verstanden?\n\n
<!--EDIT|esskar|1106942682-->