🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #104452

Re: VB 2008 odpowidnik String$ z VB6

#104452
From: Arek
Date: Mon, 25 Jan 2010 00:52
26 lines
1766 bytes
"ktos" <ktos@nikt.pl> wrote in message 
news:hjii2u$ki4$1@node1.news.atman.pl...
> joker77 pisze:
>> function tekst(ciag as string, powtorz as integer)as string
>> var c1 as string=""
>> for i as integer=1 to powtorz
>> c1+=ciag
>> next
>> return c1
>> end function
>>
>> Chyba prościej się nie da?
>
> Czy prosciej nie wiem, ale krocej :) i pewnie szybciej
>
> Function Repeat(ByVal instr As String, ByVal n As Integer) As String
>         Dim result = New StringBuilder(instr.Length * n)
>         Return result.Insert(0, instr, n).ToString()
> End Function
>


miałem na myśli czy może w VB 2008 jest wbudowana funkcja podobna do String$ 
z VB6 żebym nie musiał swojej funkcji pisać.. :-)
ale wielkie dzięki za odpowiedzi
Technical Details
Message-ID: <hjiq0s$m5t$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <hji6vc$6sl$1@news.onet.pl> <8fa5a0bb-f413-488d-be23-0c1cc0e42b44@p24g2000yqm.googlegroups.com> <hjii2u$ki4$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: "Arek" <zaplata@poczta.onet.pl>
Newsgroups: pl.comp.lang.vbasic
Subject: Re: VB 2008 odpowidnik String$ z VB6
Date: Mon, 25 Jan 2010 00:52:39 -0000
Organization: http://onet.pl
Lines: 30
Message-ID: <hjiq0s$m5t$1@news.onet.pl>
References: <hji6vc$6sl$1@news.onet.pl> <8fa5a0bb-f413-488d-be23-0c1cc0e42b44@p24g2000yqm.googlegroups.com> <hjii2u$ki4$1@node1.news.atman.pl>
NNTP-Posting-Host: cpc6-acto2-0-0-cust571.4-2.cable.virginmedia.com
X-Trace: news.onet.pl 1264380765 22717 86.2.186.60 (25 Jan 2010 00:52:45 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 25 Jan 2010 00:52:45 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit