Thread Optionmenu - Werte binden: mittels -variable (2 answers)
Opened by pktm at 2005-01-28 16:39

esskar
 2005-01-28 22:04
#42831 #42831
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ja, du übergibst falsch!
du bindest an $bindSelectedValue und $bindSelectedTextlabel
, die jedoch nur in der sub definiert sind

Code: (dl )
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-->

View full thread Optionmenu - Werte binden: mittels -variable