Equivalant of VB6 String(Number as Long, Character)

  • Thread starter Thread starter Water Cooler v2
  • Start date Start date
W

Water Cooler v2

What is the .NET equivalant of the VB function String(Number as Long,
Character)? I am forgetting it at the moment.
 
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
 
Water Cooler v2 said:
What is the .NET equivalant of the VB function String(Number as Long,
Character)? I am forgetting it at the moment.

'StrDup'.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top