for loop

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: huzz (huzz_at_discussions.microsoft.com)
Date: 12/03/04


Date: Fri, 3 Dec 2004 07:25:06 -0800

I have a function that returns array, i want to call this function inside a
for loop as shown below.. the problem i have i i always get the result for
the .gif as it is the last entry in ext array. how do i combine the results
and maybe use a seperator in between each results? many thanks
 
           string[] ext = new string[3];
            ext[0] = "*.mp3";
            ext[1] = "*.bmn";
            ext[2] = "*.gif";

     string[] strCol = new string[3];
              for(int x = 0; x < ext.Length; x++)
                       {
                           strCol = DirSearch("C:\\TEMP",ext[x]);
              }
            DataGrid1.DataSource = strCol;
            DataGrid1.DataBind();



Relevant Pages

  • Re: Removing entry from @rray
    ... entry from an @rray. ... and places each line into the array. ... Redefining the @array element inside to loop ... I would also like to ask about terminating a loop ... ...
    (comp.lang.perl.misc)
  • RE: Error 3021
    ... Create proto-file names using the selected job names and storre to an array ... Save and close the document and repeat the loop ... Dim strJobsAs String, strDocsAs String, varValsAs _ ...
    (microsoft.public.access.modulesdaovba)
  • RE: Error 3021
    ... Kevin Backmann ... Create proto-file names using the selected job names and storre to an array ... Save and close the document and repeat the loop ... Dim strJobsAs String, strDocsAs String, varValsAs _ ...
    (microsoft.public.access.modulesdaovba)
  • RE: Error 3021
    ... Create proto-file names using the selected job names and storre to an array ... Save and close the document and repeat the loop ... Dim strJobsAs String, strDocsAs String, varValsAs _ ...
    (microsoft.public.access.modulesdaovba)
  • Re: Displaying a large amount of data quickly (VB6)
    ... >>> involving a loop of VB code would be too slow. ... but I'd sure be interested to know if that StringBuilder ... Array elements: 25000 ... Array construction: 17 ...
    (microsoft.public.vb.controls)