Bob Stango wrote: > I found the MaxLength option in the docs but it does not seem > to limit the field. What I want is to be able to have the field > restricted to 15 characters. So no more characters could be > typed in. Is this possible? Have I just used the wrong syntax? > Thanks for any help.
MaxLength is a METHOD, not an OPTION. change your code to this: $Win->AddTextfield( -text => "", -name => "Host_Name", -pos => [ 285, 243 ], -size => [ 100, 20 ], -tabstop => 1, ); $Win->Host_Name->MaxLength( 15 ); cheers, Aldo __END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;