470,849 Members | 1,383 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

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

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
Nov 3 '08 #1
2 1416
<ad*****@dublin.iewrote in message
news:fa**********************************@b31g2000 prb.googlegroups.com...
I need to understand what's the use of the String function on this
line to convert it to VB.net:
http://www.w3schools.com/VBscript/func_string.asp
At the moment I've inserted it into a .NET class and the compiler
didn't take accept that syntax of "String()".
http://bytes.com/forum/thread377778.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 3 '08 #2
Many thanks,
I got it on my own.
String( 848934 - 3489 * ..., Chr(0))

becomes

New String( Chr(0), 848934 - 3489 * ...)
Nov 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dean G | last post: by
2 posts views Thread by davidgordon | last post: by
5 posts views Thread by Mike | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.