Moore, Larry wrote:
> I would like to assign the highlighted portion of a textfield to
> $var. I have the Textfield created with stuff in it but I don't
> see a method which will let me make the assignment.
there is a Selection method that returns the start and end of
the selection. then you just make a substr on the Textfield
content:
($from, $to) = $Textfield->Selection();
$var = substr($Textfield->Text, $from, $to-$from);
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
|