uh-huh
Patrick Burrows
I'm diggin all the way to China With a silver spoon
Now Playing: 05 johnny b goode (unnamed server) - [
> -Original Message-
> From: Bill Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 11:23 AM
> To: [
>> Well I did say I hated to mention it (mostly for the
>> reasons you oulined)...
>
> Sorry Jeremy. I hope I didn't come across as bashing
> you personally, because I certainly didn't mean it
> that way.
No worries, I didn't take it that way, I thought you were
bashing VB programmers in general
Jeremy Hopkin [mailto:[EMAIL PROTECTED]] wrote:
> Well I did say I hated to mention it (mostly for the
> reasons you oulined)...
Sorry Jeremy. I hope I didn't come across as bashing you personally, because
I certainly didn't mean it that way.
> But I thought it was worth pointing out that VB.NE
Jeremy Hopkin wrote:
> But I thought it was worth pointing out that VB.NET doesn't have any
> libraries that you cannot use from C# (Least not that I am aware of) and
> they are all there available to use from C#.
> Whether it is sensible to use them or whether you want to use them is a
> differ
>> I hate to say it but, I feel it must be said:
>>
>> You can use the VB.NET libraries from with C#
>>
> ...but why you would go to such great lengths to do this is
> beyond me. Especially when if you look at the IL for StrDup
> all it's doing is what you should be anyway: calling new
> String('-
Jeremy Hopkin [mailto:[EMAIL PROTECTED]] wrote:
> I hate to say it but, I feel it must be said:
>
> You can use the VB.NET libraries from with C#
> ( although: String has been renamed StrDup )
>
> MyVar = Microsoft.VisualBasic.StrDup(65, "-");
It's actually Microsoft.VisualBasic.Strings.StrDup,
I hate to say it but, I feel it must be said:
You can use the VB.NET libraries from with C#
( although: String has been renamed StrDup )
MyVar = Microsoft.VisualBasic.StrDup(65, "-");
Jeremy :)
>>
>> Is there an equivalent in C# of the VB String() function? I want to
>> create a line of 65 "-"
Perhaps, but not for your original question...
string MyVar = new string('-', 65);
will do what you asked.
Bill
On Thu, 30 May 2002 11:12:23 -0400, Patrick Burrows
<[EMAIL PROTECTED]> wrote:
>Good point. Though, I still needed the padd functionality.
>
>
>
>
>Patrick Burrows
>Well I woke up
Convert.ToChar("-"),65);
Walt Ritscher
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Patrick Burrows
Sent: Thursday, May 30, 2002 7:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] C# Equivs of VB Functions
Nevermind. Looks like PadRight or P
Good point. Though, I still needed the padd functionality.
Patrick Burrows
Well I woke up this morning With the cold water
Now Playing: phish - billy breathes - 03 - waste (unnamed server)
> -Original Message-
> From: Bill Schmidt [mailto:[
Patrick,
Its just as well that you did hit send, because PadRight, PadLeft are not
the 'correct' answer (even if they might work). The correct answer is to
use one of the overloads of the string constructor. That is, type
string MyVar = New string(
and pick the appropriate constructor (i.e,
Nevermind. Looks like PadRight or PadLeft will do what I want.
(you always find the answer as soon as you hit send... it is an
unwritten rule of listservers).
Patrick Burrows
Found an old dog And he seems to like me
Now Playing: phish - billy breathes - 03 - waste (unnamed
Is there an equivalent in C# of the VB String() function? I want to
create a line of 65 "-" characters (am formatting some text).
In VB, I just do:
MyVar = String(65,"-")
Am looking through the members of the String class and don't see
anything.
I mean, obviously, I can accomplish the s
13 matches
Mail list logo