Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
Subject: RE: Equivalent to REPLICATE() function in VB
Thread ID: 470915 Message ID: 470951 # Views: 33 # Ratings: 1
Version: Not Applicable Category: Visual Basic
Date: Friday, December 27, 2019 10:31:25 PM         
   



> > Welcome. Also there is this Linq approach using Enumerable.Repeat (returns the result as an IEnumerable, then converted to a plain string):
> >
> >
> > string.Join("",Enumerable.Repeat("replicate",15))
> > 

> >
> > This might be useful, say you want those 15 "replicate" seperated by commas:
> >
> >
> > string.Join(",",Enumerable.Repeat("replicate",15))
> > 

> >
> >

> > Cetin Basoz
> >
> > Give some sample data in code for your question - here is the tool you need to generate the code
> >
> > My Blog
> >

> > PostgreSQL - World's most advanced open source database

> > MongoDb Certified Developer
> > MongoDb Certified DBA
> >

> > Support Wikipedia
> >
> >
Flutter for mobile, for web & desktop.
> >
The way to Go.
> >
How to create a Minimal, Reproducible Example
>
> Not sure we have Linq here... Does it come with Visual Studio (we have 2012 Pro edition) or needs to be acquired and installed as Add-On kind of thing?
>
> Regards,
>
> Ilya
>
> "I'm gonna keep on trying
> Till I feel like dying,
> And I lay down and pass away.
> But that won't happen till tomorrow,
> And by then I can
> Borrow another day,
> So I'm gonna keep on trying!" - Uriah Heep

You already have it. It is available since C# 3.5 (don't know VB version but rather old, before VS 2012 - actually I wrote about in my blog starting Feb 2009).



Cetin Basoz

Give some sample data in code for your question - here is the tool you need to generate the code

My Blog


PostgreSQL - World's most advanced open source database

MongoDb Certified Developer
MongoDb Certified DBA


Support Wikipedia


Flutter for mobile, for web & desktop.

The way to Go.

How to create a Minimal, Reproducible Example

ENTIRE THREAD

Equivalent to REPLICATE() function in VB Posted by Ilya Rabyy @ 12/26/2019 9:27:11 PM
RE: Equivalent to REPLICATE() function in VB Posted by Cetin Basoz @ 12/26/2019 9:58:35 PM
RE: Equivalent to REPLICATE() function in VB Posted by Ilya Rabyy @ 12/27/2019 12:05:07 AM
RE: Equivalent to REPLICATE() function in VB Posted by Cetin Basoz @ 12/27/2019 5:34:33 PM
RE: Equivalent to REPLICATE() function in VB Posted by Ilya Rabyy @ 12/27/2019 7:16:11 PM
RE: Equivalent to REPLICATE() function in VB Posted by Cetin Basoz @ 12/27/2019 10:31:25 PM