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. Information from one pgm to another

Information from one pgm to another

Scheduled Pinned Locked Moved Visual Basic
csharpxmlquestion
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.
  • H Offline
    H Offline
    henur
    wrote on last edited by
    #1

    Hi I have a VB.NET pgm which is reading 1,2,3... xml-files. For each xml-file, i wish to start another VB.NET pgm, WITH some information from newly read xml-file. How will i do this ?? Kind Regards Heino

    D 1 Reply Last reply
    0
    • H henur

      Hi I have a VB.NET pgm which is reading 1,2,3... xml-files. For each xml-file, i wish to start another VB.NET pgm, WITH some information from newly read xml-file. How will i do this ?? Kind Regards Heino

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That depends on how much information and what type you want to send. If its a small amount, then you could send it as a command line argument. If it's more, then you can either use a seperate file or an advanced technique like .NET Remoting.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      H 1 Reply Last reply
      0
      • D Dave Kreskowiak

        That depends on how much information and what type you want to send. If its a small amount, then you could send it as a command line argument. If it's more, then you can either use a seperate file or an advanced technique like .NET Remoting.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        H Offline
        H Offline
        henur
        wrote on last edited by
        #3

        It is just 2 fields, date and time. I never used a command line. Do you have any example ? By the way, they are in string format. Heino

        S D 2 Replies Last reply
        0
        • H henur

          It is just 2 fields, date and time. I never used a command line. Do you have any example ? By the way, they are in string format. Heino

          S Offline
          S Offline
          shreekar
          wrote on last edited by
          #4

          Remember that at the end of the day your VB.Net program is a exe file. So you can pass arguments to it like other exe file. You can search on Google for handling command line arguments. About the data type of the arguments, it is a good idea to always consider them as strings and typecast them in the receiving code.

          Shreekar

          1 Reply Last reply
          0
          • H henur

            It is just 2 fields, date and time. I never used a command line. Do you have any example ? By the way, they are in string format. Heino

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            You can find information on getting your applications command line arguments here[^].

            Dave Kreskowiak Microsoft MVP - Visual Basic

            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