From: Moore, L. <Lar...@tf...> - 2001-02-08 15:34:14
|
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. Larry |
From: Aldo C. <da...@pe...> - 2001-02-08 15:46:25
|
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; |