jessy
jessy

Reputation: 13

Migration trobules upgrading from vb6 to vb.net

I want to upgrade Vb5 code to Vb.net but I don't know how to upgrade this command strMsgDtl and vbCrLf are string:

strMsgDtl = strMsgDtl & String(75, "-") & vbCrLf

What does the following command mean??

String(75, "-")

Upvotes: 0

Views: 118

Answers (1)

Jon Egerton
Jon Egerton

Reputation: 41539

String(75,"-") creates a string 75 characters long, made of the "-" character.

VB.Net equivalent would be New String("-", 75)

Upvotes: 1

Related Questions