Re: Probably easy lisp question

"lcluke" <[email protected]> Fri, 09 May 2003 16:50:22 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
--- In [email protected], "Edward O'Connor" <ted@o...> 
wrote:
> > I want to convert a number into a string.
> >  
> > (makestrvar 3) -> "var3"
> > (makestrvar 1000) -> "var1000"
> 
> Have you tried using FORMAT? (format t "var~d" x) should do what 
you
> want.

Or you can try (format nil "var~d" x) which returns the string 
instead of printing it out. E.g.

(setf a-variable (format nil "var~d" x))

-Luke




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/