Forum Discussion
John
Apr 19, 2011Altostratus
hmmm, doesn't seem consistent. a "class size" gives 1, but a "class get" gives 2. So if I want to iterate a list I can't use "class get"? Or I have to put a conditional if count >2, then use get? Or should I be using search?
class get [-nocase] []
Returns a list containing the names or a list of the name and value currently found in .
An optional may be specified to restrict the list to names that match the Tcl glob pattern. Additionally, the switch -nocase may be specified to enable case-insensitive pattern matching.
This command provides a way to access the class as a Tcl list similar to previously access the global variable named the same as the list.