By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Equivalant of VB6 String(Number as Long, Character)

P: n/a
What is the .NET equivalant of the VB function String(Number as Long,
Character)? I am forgetting it at the moment.

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Water Cooler,

I know a constructor in VBNet as this

Dim str as String = New String("a"c,10)
'this gives 10 times an 'a'

Be aware that what was in VB6 a Long is an Integer in VBNet.

I hope this helps,

Cor


Nov 21 '05 #2

P: n/a
"Water Cooler v2" <wt*****@yahoo.com> schrieb:
What is the .NET equivalant of the VB function String(Number as Long,
Character)? I am forgetting it at the moment.


'StrDup'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3

P: n/a
Thanks, Cor and Herfried.
Be aware that what was in VB6 a Long is an Integer in VBNet.


Thanks. Already aware of that.

- Water Cooler v2

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.