That's what "explode$" does -- break a string into tokens. So...
(bind ?ag (first$ (explode$ ?modelname)))
On Sep 30, 2009, at 2:43 PM, Uiratan Cavalcante wrote:
Hi all,
I have a string in the variable ?modelname. Ex: "Agent of System".
I need to get the first element (Agent), so i tried: (bind ?ag (first
$ (create$ ?modelname)))
But it returns me "Agent of System". Any help?
Best regards,
--
Uiratan Cavalcante +55 (98) 8138-9212
TI/TRT-16-MA (Manhã) +55 (98) 2109-9430 http://www.trt16.gov.br
GESEC/UFMA (Tarde) +55 (98) 2109-8297 http://gesec.deinf.ufma.br
São Luís - MA - Brazil
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
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].
--------------------------------------------------------------------