Ashot
Ashot

Reputation: 10959

TCL: get the class name of an object?

How to get class name of itcl object or check if the object exists?

Upvotes: 3

Views: 2387

Answers (1)

TrojanName
TrojanName

Reputation: 5355

Try using info class e.g.

objName info class

See also http://wiki.tcl.tk/12629 for more information on checking existence using itcl::is

itcl::is object objName

Upvotes: 6

Related Questions