🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #4041

Re: sostituzione carattere in una stringa

#4041
From: SimonenomiS
Date: Fri, 09 Nov 2001 00:36
25 lines
1752 bytes
"AlexTM" <alextm@libero.it> ha scritto nel messaggio
news:heUD7.15426$7A4.971659@news.infostrada.it...
> Prova ad usare questa funzione...
>
> Private Function VbCrLf_to_BR(ByVal stringa)
>      Dim i
> 10 For i = 1 To Len(stringa) - 1
>       If Mid(stringa, i, 2) = vbCrLf Then stringa = Left(stringa, i - 1) &
> "<br>" & Right(stringa, Len(stringa) - (i + 1)): GoTo 10
>     Next i
>     VbCrLf_to_BR = stringa
> End Function
>
>
> AlexTM
>
    Oppure questa (VB6):

    Replace$(1, StringaOriginale, vbCrLf, "<br>")

    Ciao.

--------------------------------------------------
http://digilander.iol.it/SimonenomiS/Software.html
--------------------------------------------------
Technical Details
Message-ID: <syFG7.48293$sq5.2434602@news.infostrada.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!nntp.infostrada.it!news.infostrada.it!not-for-mail
References: <I2fD7.2059$7A4.95946@news.infostrada.it> <heUD7.15426$7A4.971659@news.infostrada.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94ee,dd9b620ae5bbab61
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2001-11-08 16:33:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!nntp.infostrada.it!news.infostrada.it!not-for-mail
From: "SimonenomiS" <xxxxx@yyyyyy.zzz>
Newsgroups: free.it.visual-basic
References: <I2fD7.2059$7A4.95946@news.infostrada.it> <heUD7.15426$7A4.971659@news.infostrada.it>
Subject: Re: sostituzione carattere in una stringa
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <syFG7.48293$sq5.2434602@news.infostrada.it>
Date: Fri, 09 Nov 2001 00:36:40 GMT
NNTP-Posting-Host: 151.14.101.230
X-Complaints-To: abuse@iol.it
X-Trace: news.infostrada.it 1005266200 151.14.101.230 (Fri, 09 Nov 2001 01:36:40 MET)
NNTP-Posting-Date: Fri, 09 Nov 2001 01:36:40 MET
Organization: [Infostrada]