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. C#
  4. vb code conversion to c#....

vb code conversion to c#....

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
3 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    moomoooomoo
    wrote on last edited by
    #1

    need help.. how to convert this code to c#? ----- dim strTemp() as string - vb code... can anyone help.. im just new to c#... thank you..

    start a new beginning in every ending; thats what life for......

    L J 2 Replies Last reply
    0
    • M moomoooomoo

      need help.. how to convert this code to c#? ----- dim strTemp() as string - vb code... can anyone help.. im just new to c#... thank you..

      start a new beginning in every ending; thats what life for......

      L Offline
      L Offline
      Lilupa
      wrote on last edited by
      #2

      Its just simple. string[] strTemp; If you want to assign a NULL value at initialization level, then string[] strTemp = null;

      1 Reply Last reply
      0
      • M moomoooomoo

        need help.. how to convert this code to c#? ----- dim strTemp() as string - vb code... can anyone help.. im just new to c#... thank you..

        start a new beginning in every ending; thats what life for......

        J Offline
        J Offline
        Jasmine2501
        wrote on last edited by
        #3

        This is one of the problems with VB - those parentheses mean it's an array. You should be able to figure out from there... if not... you need to go back and read your C# book again.

        "Quality Software since 1983!"
        See my personal web site for photos, info, and a really weird blog
        Want to fly model aircraft? Read my beginner site to find out how!

        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