Troubles extending a string...

From: Jeff (jma_at_insightbb.com)
Date: 08/24/04


Date: 24 Aug 2004 11:58:50 -0700

Is there any way to append a string onto another string without using
CONCATENATE? The problem I am having is that I'm building a string,
character by character, using VECTOR-PUSH-EXTEND. However, this process
is recursive:

(defun build-string ()
(let ((s1 (create-adjustable-string-vector)))
(if (check-for-recursion)
(let ((s2 (build-string)))
(---> want to append s2 to s1 here <---))
s1)))

The algorithm (of course) is a little more complicated than this. My
initial attempt was to use CONCATENATE and just set 's1' to the return
value, but this fails later on, as the string returned by CONCATENATE
doesn't appear to be adjustable any more. Is there a way to append a
string in-place?

Thanks!

Jeff



Relevant Pages

  • Re: file delete routine is intermittent
    ... >> terminator character to every string. ... > Only when you pass a string as a parameter. ... VB does NOT automatically append a null ...
    (microsoft.public.vb.winapi)
  • Re: file delete routine is intermittent
    ... >>> terminator character to every string. ... >> Only when you pass a string as a parameter. ... >> character to string members of structures so you must append the null ...
    (microsoft.public.vb.winapi)
  • Re: Message for Duane Hookum re Concatenate
    ... Function Concatenate(pstrSQL As String, _ ... >>Doug Steele, Microsoft Access MVP ... >>> in Duanes code? ... >>>>> Concatenate code which Ive used successfully on a ...
    (microsoft.public.access.modulesdaovba)
  • Re: Pound symbol in a string
    ... > When I use system.IO.StreamWriter to write append a string to file that ... > contains the GBP pound symbol, I notice that it also appends an extra ... Yet when I examine the string character ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Writing a GUID to a SQL table
    ... > This returns an 8 character - a string value? ... >> string before attempting to concatenate it into your dynamic sql ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)