Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chr(0) in VB.Net

Status
Not open for further replies.

yakshasa

Programmer
Oct 16, 2002
4
US
In VB6, sUid = String$(32, 0) returns as a string of 32 binary zeros.

In VB.Net, sUid = New String(Chr(0), 32) returns "", which equates to Nothing.

How do I get it to work like VB6?

Any help would be appreciated

--Hal
 
Dim sUid = New String("0", 32)

Kris
- Tact is the act of making a point without making an enemy. - Clarence Darrow
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top