Re: Can't find duplicates after only Backspace in entry field.





I've just had a quick look at your program, but I think the regular
expression you are using to find the duplicate is not correct in this
case.

Try
    if ( $model->get($iter, $column) =~ /^$search_string$/ )

instead of 

    if ( $model->get($iter, $column) =~ /$search_string/ )

See http://perldoc.perl.org/perlre..html#Regular-Expressions for more
info.

Regards
Mario


Thank you very much for this.  I really appreciate the help.  Works like a charm.



      __________________________________________________________________________________
See what's on at the movies in your area. Find out now: http://au.movies.yahoo.com/session-times/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]