Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"info objects"

Status
Not open for further replies.

tcltk888

Programmer
Jun 22, 2002
1
CA
Could anyone help me to find what's wrong there? Thanks.
When I ran one object script "translate" with itcl31, it gave me the following error message:

D:\test>itclsh31 translate ConfigMetaData.wkp java pnm.config.configmetadata
bad option "objects": must be args, body, cmdcount, commands, complete, default, exists, globals, hostname, level, library, loaded, locals, nameofexecutable, pa
tchlevel, procs, script, sharedlibextension, tclversion, or vars
while executing
"info objects"
invoked from within
"foreach object [info objects] {
$object create_stt
}"
(file "translate" line 556)
 
The literature reports that the correct way to do this now is with the find objects command , but you can still use the itcl_info objects command.

so your code would read:

foreach object [itcl_info objects] {
$object create_stt
etc..
}

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top