in reply to Re: Using variable contents in new variable name
in thread Using variable contents in new variable name
So ideally, the text field in the sub would be assigned like this## This is the button that initiates the sub ADMISSION $COLUMN_1->Button(-image=>$admiss_1, -width=>179, -border=>0, -background=>'#c2d297', -relief=>'flat', -command=>sub{ ADMISSION('1') } ) ->pack(-side=>'top'); ## This is part of the sub ADMISSION that contains a text field ($name +field) that the variable "$admiss_?_name" needs to be assigned to.(Wi +th the question mark being replaced by the "1" being passed by the bu +tton) sub ADMISSION { $namefield->Text(-width=>30,-height=>1)->pack(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using variable contents in new variable name
by GrandFather (Saint) on Dec 11, 2006 at 02:59 UTC | |
by antioch (Sexton) on Dec 11, 2006 at 03:41 UTC | |
by chromatic (Archbishop) on Dec 11, 2006 at 03:45 UTC | |
by antioch (Sexton) on Dec 11, 2006 at 03:56 UTC | |
by GrandFather (Saint) on Dec 11, 2006 at 03:59 UTC |