From: Francesco Moi
Subject: Problems with "concatenate string"
Date: 
Message-ID: <5b829932.0111280845.52fcbac1@posting.google.com>
Hi again.

I'm trying to concatenate "pricelist" with ".xls". The value "myfile"
is stored in 'value'.

When I try:
(concatenate 'string value ".xls")

I get:
**********************************
LISP error:
("pricelist") is not a character
**********************************

What am I doing wrong?

From: Vebjorn Ljosa
Subject: Re: Problems with "concatenate string"
Date: 
Message-ID: <cy31yiistmx.fsf@ljosa.com>
* ············@europe.com (Francesco Moi)
| 
| I'm trying to concatenate "pricelist" with ".xls". The value "myfile"
| is stored in 'value'.
| 
| When I try:
| (concatenate 'string value ".xls")
| 
| I get:
| **********************************
| LISP error:
| ("pricelist") is not a character
| **********************************
| 
| What am I doing wrong?

From the error message, it looks like VALUE is not the string
"pricelist", but the list ("pricelist").

-- 
Vebjorn Ljosa
From: Coby Beck
Subject: Re: Problems with "concatenate string"
Date: 
Message-ID: <uR8N7.130801$Yb.34586890@typhoon.tampabay.rr.com>
"Francesco Moi" <············@europe.com> wrote in message
·································@posting.google.com...
> Hi again.
>
> I'm trying to concatenate "pricelist" with ".xls". The value "myfile"
> is stored in 'value'.
>
> When I try:
> (concatenate 'string value ".xls")
>
> I get:
> **********************************
> LISP error:
> ("pricelist") is not a character
> **********************************
>
> What am I doing wrong?
>

That should work.  What lisp are you using and are you sure that value -->
"pricelist" and not ("pricelist").  ie if you pushed "pricelist" onto value it
will be the second, listed value and you will either have to set it differently
or take the car of it for concatenate.

--
Coby
(remove #\space "coby . beck @ opentechgroup . com")
From: Lieven Marchand
Subject: Re: Problems with "concatenate string"
Date: 
Message-ID: <m3g06y7syg.fsf@localhost.localdomain>
············@europe.com (Francesco Moi) writes:

> Hi again.
> 
> I'm trying to concatenate "pricelist" with ".xls". The value "myfile"
> is stored in 'value'.
> 
> When I try:
> (concatenate 'string value ".xls")
> 
> I get:
> **********************************
> LISP error:
> ("pricelist") is not a character
> **********************************
> 
> What am I doing wrong?

At first sight, value contains '("pricelist") instead of "pricelist".

CL-USER 2 > (let ((value "pricelist"))
              (concatenate 'string value ".xls"))
"pricelist.xls"

-- 
Lieven Marchand <···@wyrd.be>
She says, "Honey, you're a Bastard of great proportion."
He says, "Darling, I plead guilty to that sin."
Cowboy Junkies -- A few simple words