CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Location
    .Net 4.0
    Posts
    58

    Order of parameters passed to Main

    Hello,

    I've made a simple application that accepts text files output by several scientific instruments, parses them, interfaces with Excel, and plots them. One feature of the program is supposed to be its simplicity; you just drag&drop as many files as you want to the icon and it will plot them all. However, I cannot figure out how to get it to take parameters in a certain order. For example, I would like to be able to highlight "B.txt", then "C.txt", and then "A.txt" in Windows Explorer, drop them onto my application, and have the data on my graph have the same order as the files I clicked on. Is there a way to specify the order of parameters?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Order of parameters passed to Main

    Not without seeing the code you use. If the app ACCEPTS parameters, I'd create a listbox
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured