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

  • Thread starter Thread starter adupuis
  • Start date Start date
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
 
Many thanks,
I got it on my own.


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

becomes

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