Real Perl has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
I sure would appreciate your wisdom on this one:
I have some entry boxes (only give you one here).
$case_numbertf = $page1 -> Entry(-textvariable => \$case_number) ->pla +ce(-x=> 380, -y=> 30);
And some scrollable text areas:
Then, I check to see if my user has typed in those so I can let him/her know what is not filled out.$agency_infotf = $page1 -> Scrolled('Text', -scrollbars=> 'e', -width= +> 25, -height=>1)->place(-x=> 15, -y=> 85);
if ($case_number eq ""){ $dialog = $mw-> Dialog( -title => 'Alert', -text => "Please Complete ALL the Fields on the First Tab", -buttons => [ qw(OK) ]) ->Show();
And I check the scrollable text area:
Checking the entry box works great, but it looks like I need to use something else beside eq "" to determine if the text area is empty.$agency_info = $agency_infotf->get('1.0','end'); if ($agency_info eq ""){ $dialog = $mw-> Dialog( -title => 'Alert', -text => "Please Complete ALL the Fields on the First Tab", -buttons => [ qw(OK) ]) ->Show();
Thank you in advance for your time.
Claire
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text Widget empty string
by pg (Canon) on Jul 29, 2005 at 04:55 UTC | |
by Real Perl (Beadle) on Jul 29, 2005 at 05:48 UTC | |
|
Re: Text Widget empty string
by GrandFather (Saint) on Jul 29, 2005 at 04:09 UTC | |
by pg (Canon) on Jul 29, 2005 at 04:54 UTC |