DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: File Association: How to Read in File Data into App

  1. #1
    Micah Nasarow Guest

    File Association: How to Read in File Data into App

    Greetings,

    I am having trouble finding info on what is passed to the app of an
    associated file.
    I have written an app that has stored data in a file with a my own file
    extension. I have associated the file with my app. When I dbl ckick the
    file, the app opens.

    Now then..what do I need to do to capture the file name or path or whatever
    to pass to my Function that parses the file and puts the data in the proper
    text boxes.

    Thanx

    Micah Nasarow





  2. #2
    Kenny Acock Guest

    Re: File Association: How to Read in File Data into App


    Micah,

    >I am having trouble finding info on what is passed to the app of an
    >associated file.
    >I have written an app that has stored data in a file with a my own file
    >extension. I have associated the file with my app. When I dbl ckick the
    >file, the app opens.
    >
    >Now then..what do I need to do to capture the file name or path or whatever
    >to pass to my Function that parses the file and puts the data in the proper
    >text boxes.


    Look up the Command$ function in the VB help file. I believe this is what
    you are looking for.

    --Kenny

  3. #3
    Micah Nasarow Guest

    Re: File Association: How to Read in File Data into App

    Kenny! Beautiful! Works like a charm. I did a quick test and it passed the
    path to the file. That is all I need.

    Great!
    Micah

    "Kenny Acock" <kennya@teacherspal.com> wrote in message
    news:3af311c2$1@news.devx.com...
    >
    > Micah,
    >
    > >I am having trouble finding info on what is passed to the app of an
    > >associated file.
    > >I have written an app that has stored data in a file with a my own file
    > >extension. I have associated the file with my app. When I dbl ckick the
    > >file, the app opens.
    > >
    > >Now then..what do I need to do to capture the file name or path or

    whatever
    > >to pass to my Function that parses the file and puts the data in the

    proper
    > >text boxes.

    >
    > Look up the Command$ function in the VB help file. I believe this is what
    > you are looking for.
    >
    > --Kenny




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center