for loop
From: huzz (huzz_at_discussions.microsoft.com)
Date: 12/03/04
- Next message: Ferret: "Re: CreateChildControls before LoadViewState = Bug in DataGrid and Repeater"
- Previous message: Shrinivas Reddy: "Random Session Expiration"
- Next in thread: weichung [MCSD, MCDBA]: "RE: for loop"
- Reply: weichung [MCSD, MCDBA]: "RE: for loop"
- Reply: William F. Robertson, Jr.: "Re: for loop"
- Messages sorted by: [ date ] [ thread ]
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();
- Next message: Ferret: "Re: CreateChildControls before LoadViewState = Bug in DataGrid and Repeater"
- Previous message: Shrinivas Reddy: "Random Session Expiration"
- Next in thread: weichung [MCSD, MCDBA]: "RE: for loop"
- Reply: weichung [MCSD, MCDBA]: "RE: for loop"
- Reply: William F. Robertson, Jr.: "Re: for loop"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|