all groups > vb.net upgrade > december 2003 >
You're in the

vb.net upgrade

group:

String(2, 0)???



String(2, 0)??? DraguVaso
12/22/2003 8:27:39 PM
vb.net upgrade: Hi,

In VB6 we used to have the function String(2, 0), which gave a string with
lenght 2, containing "0" -> in total "00".

But what is the VB.NET equivalent of this? Anybody got any idea?

Thansk a lot,

Pieter

Re: String(2, 0)??? DraguVaso
12/22/2003 8:59:49 PM
Thanks a lot!!

[quoted text, click to view]

Re: String(2, 0)??? Armin Zingler
12/22/2003 9:39:26 PM
"DraguVaso" <pietercoucke@hotmail.com> schrieb
[quoted text, click to view]

s = new string("0"c, 2)
or
s = Strings.StrDup(2, "0"c)


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Re: String(2, 0)??? hirf-spam-me-here NO[at]SPAM gmx.at
12/22/2003 11:09:35 PM
* "DraguVaso" <pietercoucke@hotmail.com> scripsit:
[quoted text, click to view]

'Microsoft.VisualBasic.Strings.StrDup' or '... = New String("0"c, 100)'.

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button