I think [EMAIL PROTECTED] wrote:
>
> Hi!
>
> I get the module name "MAIN::" prefixed to information I get on rete
> objects, for example getName() on a Fact. What's the best way *not* to
> get this module name?
>
Untested:
public static String nameWithoutModule(String name) {
int start = name.lastIndexOf(':');
return name.substring(start, name.length());
}
That's about it.
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------