Quantcast
Channel: How do I create a string with repeating characters?
Browsing all 6 articles
Browse latest View live

How do I create a string with repeating characters?

Since '*' is already a string, an alternative I find sticking with the methods the type  offers somewhat  better to follow. So you could use:"*".PadRight(25, "*")of course you could also use PadLeft.

View Article



How do I create a string with repeating characters?

It is interesting to compare these uses of"*" * 35 PS C:> "*" * 35***********************************PS C:> 35 * "*"The '*' operator failed: Cannot convert value "*" to type "System.Int32". ......

View Article

How do I create a string with repeating characters?

It is interesting to compare these uses of"*" * 35 PS C:> "*" * 35***********************************PS C:> 35 * "*"The '*' operator failed: Cannot convert value "*" to type "System.Int32". ......

View Article

How do I create a string with repeating characters?

Great!  Thanks Sam.

View Article

How do I create a string with repeating characters?

$str = "*" * 35:)Sam Hays

View Article


How do I create a string with repeating characters?

Is there a function to create a string with repeated characters in Powershell? I am looking for something like,$string = repeat-char("*",35)Thanks.

View Article
Browsing all 6 articles
Browse latest View live




Latest Images