CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #4
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: Passing Array into Constructor

    Code:
    foreach(string s in strFileType) {
        if(s.EndsWith(".doc")) _wordFile = s;
        if(s.EndsWith(".xsl")) _excelFile = s;
        if(s.EndsWith(".whatever")) _whateverFile = s;
    }
    Last edited by MadHatter; August 3rd, 2005 at 11:20 AM.

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