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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • adupuis@dublin.ie

    #1

    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
  • Mark Rae [MVP]

    #2
    Re: Trying to convert a line of asp vbscript to vb.net

    <adupuis@dublin .iewrote in message
    news:fa7b90c0-53df-46bb-9bf9-0909060d6618@b3 1g2000prb.googl egroups.com...
    I need to understand what's the use of the String function on this
    line to convert it to VB.net:

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



    --
    Mark Rae
    ASP.NET MVP


    Comment

    • adupuis@dublin.ie

      #3
      Re: Trying to convert a line of asp vbscript to vb.net

      Many thanks,
      I got it on my own.


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

      becomes

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

      Comment

      Working...