Trying to convert a line of asp vbscript to vb.net

A

adupuis

Hi everyone,

I need to understand what's the use of the String function on this
line to convert it to VB.net:
padMsg = String((128 - (lLngLen Mod 64) - 9) Mod 64, Chr(0)) & _
String(4, Chr(0)) & Chr(lBytLenW(0)) & Chr(lBytLenW(1)) &
Chr(lBytLenW(2)) & Chr(lBytLenW(3))


At the moment I've inserted it into a .NET class and the compiler
didn't take accept that syntax of "String()".



Thanks,
Alex
 
A

adupuis

Many thanks,
I got it on my own.


String( 848934 - 3489 * ..., Chr(0))

becomes

New String( Chr(0), 848934 - 3489 * ...)
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top