Simple, Beautiful,
Thanks! -----Original Message----- From: Aldo Calpini [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2001 10:51 AM To: Moore, Larry Subject: Re: [perl-win32-gui-users] Textfield method 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; _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users