By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,338 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,338 IT Pros & Developers. It's quick & easy.

out parameter for arrays, copy function

P: n/a
I have a function, and I can't compile,

The out parameter 'newRegExpr' must be assigned to before
control leaves the current method

public string mgrLtrGrpShift(string ltrGrp, string []
myRegExpr, int targetIndex, out string []newRegExpr)

If I try
for (int i =0;i<myRegExpr.GetUpperBound(0)+1;i++)
I get a squiggly saying "use of unassigned local
variable " newRegExpr.

So using the out with an array of strings is not as easy
as with a single string. Is there a way ? Thanks !!!

Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.