↧
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 ArticleHow 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 ArticleHow 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 ArticleHow 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