Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jul 2001
    Location
    Washington, District Of Columbia, USA
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Passing Open Parameters (VB)

    Goal: I need to pass an open parameter or perhaps a switch of some kind to a VB .exe to tell it where to find stuff it needs, i.e., Database Path/DatabaseName. This procedure will be running without a user interface, but nevertheless needs to be flexible enough to use different information for each instance.


    If you can help me to figure this out, Thank You Very Much.

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Passing Open Parameters (VB)

    You could use a small text file to store the info, and have the VB read it there. Or you could store it on the registry (less felxible but more secure).
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    New Lounger
    Join Date
    Sep 2001
    Location
    Atlanta, Georgia, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Passing Open Parameters (VB)

    Perhaps I misunderstood your question but if you're asking how to read a parameter passed to the compiled VB program, the answer is to use the Command() function. If you need to pass multiple parms, you might try the Split command in conjunction with Command.

  4. #4
    New Lounger
    Join Date
    Jul 2001
    Location
    Washington, District Of Columbia, USA
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Passing Open Parameters (VB)

    That's it exactly.

    Thanks for your help.

Posting Permissions

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