next up previous 79
Next: Low Level ADAM Message System Commands
Up: Noticeboard Examples
Previous: Noticeboard Examples


Listing a noticeboard contents

proc showNbs {item} {
#+
# Lists the names and values of all the children of the noticeboard
# item $item. If $item is a noticeboard name, the entire noticeboard is
# listed.
#-
    set info [nbs info $item]
    if {[lindex $info 0]} {
        puts "$item: ([lindex $info 1]*[lindex $info 2]) \
            [lindex $info 3] [nbs get $item]"
    } {
        for {set i 1} {$i < [llength $info]} {incr i} {
           showNbs $item.[lindex $info $i]
        }
    }
}



next up previous 79
Next: Low Level ADAM Message System Commands
Up: Noticeboard Examples
Previous: Noticeboard Examples

STARTCL --- Starlink Extensions to Tcl & Tk
Starlink User Note 186
D. L. Terrett
3 March 1999
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council