Midnight Beach is Jon Shemitz, a freelance programmer and author.
Jon offers software consulting and contract services, and recently finished his 2nd book -
.NET 2.0 for Delphi Programmers.
"ad" wrote:
[color=blue]
> Is there fucntion in C#, which will return a string consist of a given
> number of space, like
>
> Space(5)-> " ";
>
>
>
>[/color]
Mark R. Dawson <MarkRDawson@di scussions.micro soft.com> wrote:[color=blue]
> string strPadded = "".PadRight (5);[/color]
That will work, but I personally far prefer Jon Shemitz's solution -
it's more readable, and it's very obvious how to go from that to a
string of 5 tabs, say.
On Sun, 21 Aug 2005 08:18:58 +0100, Jon Skeet [C# MVP]
<skeet@pobox.co m> wrote:
[color=blue]
>Mark R. Dawson <MarkRDawson@di scussions.micro soft.com> wrote:[color=green]
>> string strPadded = "".PadRight (5);[/color]
>
>That will work, but I personally far prefer Jon Shemitz's solution -
>it's more readable, and it's very obvious how to go from that to a
>string of 5 tabs, say.[/color]
On Sun, 21 Aug 2005 08:18:58 +0100, Jon Skeet [C# MVP]
<skeet@pobox.co m> wrote:
[color=blue]
>Mark R. Dawson <MarkRDawson@di scussions.micro soft.com> wrote:[color=green]
>> string strPadded = "".PadRight (5);[/color]
>
>That will work, but I personally far prefer Jon Shemitz's solution -
>it's more readable, and it's very obvious how to go from that to a
>string of 5 tabs, say.[/color]
Comment