i am writing a function below
public kayit[,] sinifa_yaz(string yazilacak_adres,int kayit_sayisi,int ara_deg)
where kayit[,] is a class..when function works and returns value, compiler deletes array's values from memory..how can i reach them and use again..
for (int i = 0; i < dizi.Length; i++)
{
int kayit_say = kay_say(dizi
b=sinifa_yaz(dizi
}
i want to update b at each time..

losing parameters in function
ThEpRoPhEcY373
I don't quite follow what the problem is. What do you mean by the compiler deleting the array values Do yo mean the array is cleared each time through the for loop or after the function returns but before you can do anything with the values You are not doing anything with b in the above code so I'm not sure where you want to use it. The above code works as follows however (just so we are on the same page):
Loop through each member of dizi.
For each member call kay_say and store the result in a local variable.
Call sinifa_yaz and pass it the member, the local variable and the array index and store the results in b which is defined outside the loop.
After the loop completes b will contain the results of the last invocation (if it was executed at all).
Michael Taylor - 9/15/06