Results 1 to 3 of 3

Thread: string function

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8

    string function

    what is the .net equivalent of the VB string function?

    S = String(5,"x") 'S = "xxxxx"

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Here you go :
    VB Code:
    1. Dim s As String = ""
    2. s = s.PadLeft(5, "x")
    3. MessageBox.Show(s)

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8
    Thank you very much

    Robb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width