Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. String$ function

String$ function

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garfield185
    wrote on last edited by
    #1

    Hi everybody, I hope somebody can help me with this. I've received a VB.NET project, and I must add some functions taken from another VB6 project. One of these functions, uses the String$ function like this: strValTemp = String$(1024, 0) But it seems that VB.NET does not allow me use this function. Is there any other way of doing the same? Thanks.

    Time to come clean... Vive y deja vivir / Live and let live Javier

    L N 2 Replies Last reply
    0
    • G garfield185

      Hi everybody, I hope somebody can help me with this. I've received a VB.NET project, and I must add some functions taken from another VB6 project. One of these functions, uses the String$ function like this: strValTemp = String$(1024, 0) But it seems that VB.NET does not allow me use this function. Is there any other way of doing the same? Thanks.

      Time to come clean... Vive y deja vivir / Live and let live Javier

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      String$(1024, 0) creates a string 1024 characters long filled with nulls. Is that going to be too hard in vb7.net?


      Panic, Chaos, Destruction. My work here is done.

      1 Reply Last reply
      0
      • G garfield185

        Hi everybody, I hope somebody can help me with this. I've received a VB.NET project, and I must add some functions taken from another VB6 project. One of these functions, uses the String$ function like this: strValTemp = String$(1024, 0) But it seems that VB.NET does not allow me use this function. Is there any other way of doing the same? Thanks.

        Time to come clean... Vive y deja vivir / Live and let live Javier

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, the string class has a constructor that takes one character and one number; it builds a string using that character count times, which AFAIK is what String$() used to do. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.


        G 1 Reply Last reply
        0
        • L Luc Pattyn

          Hi, the string class has a constructor that takes one character and one number; it builds a string using that character count times, which AFAIK is what String$() used to do. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.


          G Offline
          G Offline
          garfield185
          wrote on last edited by
          #4

          Thank you very much, Luc. Sometimes these stupid questions are the most difficult for me. ;)

          Time to come clean... Vive y deja vivir / Live and let live Javier

          L 1 Reply Last reply
          0
          • G garfield185

            Thank you very much, Luc. Sometimes these stupid questions are the most difficult for me. ;)

            Time to come clean... Vive y deja vivir / Live and let live Javier

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            you're welcome. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.


            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups