🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual.misc
2 messages
2 total messages Started by BuD Sat, 29 Jan 2000 00:00
inserting text into a string at a given point
#365
Author: BuD
Date: Sat, 29 Jan 2000 00:00
15 lines
1261 bytes
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
Re: inserting text into a string at a given point
#366
Author: Rick Rothstein
Date: Sun, 30 Jan 2000 00:00
29 lines
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
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads