Article View: comp.lang.basic.visual.misc
Article #366Re: inserting text into a string at a given point
From: Rick Rothstein
Date: Sun, 30 Jan 2000 00:00
Date: Sun, 30 Jan 2000 00:00
29 lines
1660 bytes
1660 bytes
If InsertPoint is the character location at which you want to insert
InsertText, then
NewText = Left$(TextString, InsertPoint - 1) & _
InsertText & Mid$(TextString, InsertPoint)
Rick
"BuD" <deforest@mkl.com> wrote in message
news:87093k$lof$1@ffx2nh5.news.uu.net...
> hello,
>
> I need to know how to insert text into a string at a given point. i know
of
> the min statement but that ovewrites the text in the string, i need to be
> able to insert it at a given point and have the rest of the string follow
> it, how do i go about this??
>
> EX>
> hi there world
> insert: people of the
> so i get: hi there people of the world
>
> thank you,
> Bernie
> deforest@mkl.com
>
>
Technical Details
Message-ID:
<FMSk4.10877$t_.258190@news.rdc1.nj.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<87093k$lof$1@ffx2nh5.news.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,23559f82256d3f58 X-Google-Attributes: gid110e3b,public X-Google-Thread: 108062,23559f82256d3f58 X-Google-Attributes: gid108062,public X-Google-Thread: 107824,23559f82256d3f58 X-Google-Attributes: gid107824,public From: "Rick Rothstein" <rick_newsgroup@email.com> Subject: Re: inserting text into a string at a given point Date: 2000/01/30 Message-ID: <FMSk4.10877$t_.258190@news.rdc1.nj.home.com> X-Deja-AN: 579434754 References: <87093k$lof$1@ffx2nh5.news.uu.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@home.net X-Trace: news.rdc1.nj.home.com 949221541 24.11.73.89 (Sun, 30 Jan 2000 00:39:01 PST) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Sun, 30 Jan 2000 00:39:01 PST Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,fj.comp.lang.visualbasic