validatemethod

$obj info validatemethdd $key
returns validatemethod. Example:
::obj::validatemethod line -coords val {
  foreach c $val {
    if {![string is double -strict $c]} then {
      return -code error\
        [list $self expects for -coords\
          only numbers but received $c]!
    }
  }
}

(Backslashed line-break inserted manually by author)

© Wolf-Dieter Busch | Home | Sitemap | Urheber | A-Z