CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Common Dialog files

    We have several files generated by the common dialog box,and accessed individually by the common dialog box. However we would like also to access all of them with a command button so that we could total all of the values in one operation.
    Does anyone have a way other than writing them all into code, which wouldnt work when files were changed.
    73 RSH


  2. #2
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Common Dialog files

    if I anderstood right, why don't u create an array of strings containing the paths to your files.

    Dim MyPaths(1 to 5) as string

    sub fillpaths()
    ...
    end sub

    private sub command1_click()
    [open file for MyPaths(1)]
    [open file for MyPaths(2)]
    ...
    [open file for MyPaths(5)]
    [do whatever you want with the files]
    end sub




    ----------
    The @host is everywhere!
    ----------

  3. #3
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: Common Dialog files

    Thanks DeGhost:
    Will give that a try. Sounds reasonable.
    If I run into bumps will be back.
    73 RSH


  4. #4
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: Common Dialog files

    On closer examination it looks like this is not exactly what I'm looking for since the files would have to be listed in code and if they were changed via the common dialog box would also have to be changed in code. Need to be able to access all files generated by the box sequentially from a command button.
    73 RSH


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