The argument to retract-string is a fully-parseable fact, including
the parentheses; also note that str-cat doesn't put spaces in between
its arguments. So if the fact is supposed to look like
(www.yahoo.com 80)
then you want to do
(retract-string (str-cat "(" (?ht getHost) " " (?ht getPort) ")"))
I think Richard Patten wrote:
>
> Hello everybody,
> How do I use retract-String in a situation like this
>
> (retract-string "(str-cat (call ?ht getHost) (call ?ht getPort))")
>
> What I actually want to do is to retract the string resulting from the
> statement
>
> (str-cat (call ?ht getHost) (call ?ht getPort))
>
> thanks
> Richard.
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
--------------------------------------------------------------------
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]
--------------------------------------------------------------------