[tcljava-user] Retrieving a string within a command extension
Brought to you by:
mdejong
From: Vikram R. <Vi...@PL...> - 2001-09-14 05:58:23
|
hi, Here is what I have to do... create a command extension (implementing the Command interface). This command accepts a single parameter of type string. The syntax for the command is: resolve manager where 'resolve' is the command name, and 'manager' is the parameter. How do I access the parameter within the cmdProc() method? When I access it as a TclObject and cast it to String, it returns an unknown Java Object exception. But if I create a Java String object with the value 'manager', it works fine. Something like this ... set x [java::new String "manager"] resolve $x What I need is this ... resolve manager thanks, Vikram </vikram rajan> |