Right now I do it like this …

$chkb  = $main->AddTextfield(
               
-width => 100,
                -height => 30,
                -left   => 100,
                -top    => 10,
                -position => bottom,
                -text => $sel3,
                );

$sel3 = "new string";

 $chkb->SelectAll();
 $chkb
->ReplaceSel($sel3);

Is there a better way ?

Thanks and Regards
Maxmelbin Neson
-----------------------------------------------------------------------------------------------------------------
Robert Bosch India Limited
Engineering Services - DS - Methods and Tools (RBIN/EMT1)
123 Industrial Layout  -  Hosur Road -  Bangalore 560 095  -  INDIA
Telephone: +91 80 6657-4532      Fax: +91 80 6657-1404
maxmelbin.neson@in.bosch.com
www.bosch.com