Re: strange error message while validating entry value with in lambda expression ...

MartinLemburg@Siemens-PLM wrote:
entry .e \
-textvariable value \
-width 80 \
-validate key \
-validatecommand [list apply {{initValue value} {

A minor stylistic point. I'd recommend using a constructor for these lambda expressions:

proc lambda {params body args} {
set ns [uplevel 1 { namespace current }]
linsert $args 0 [list ::apply [list $params $body $ns]]

-validatecommand [lambda {initValue value} { .. }]

It makes the code clearer IMO, and generally is a bit easier to maintain. For instance, this version also lets you curry some initial arguments and sets up the namespace context appropriately.


-- Neil