R
Rich
I was just experimenting writing some delegate functions which required me to
add the "static" keyword to procedures I was adding to a delegate array. One
of the procedures calls another procedure which takes an argument (a dataset
argument). VS said I needed to add "static" to this ancillary proc and I
also needed to add static to a form level variable I was passing to the proc.
static Dataset ds;
My question is if "static" can be over used? Is there a scenario where you
would not want to use static - where it would interefere? Or can I add
static to everythign by default?
add the "static" keyword to procedures I was adding to a delegate array. One
of the procedures calls another procedure which takes an argument (a dataset
argument). VS said I needed to add "static" to this ancillary proc and I
also needed to add static to a form level variable I was passing to the proc.
static Dataset ds;
My question is if "static" can be over used? Is there a scenario where you
would not want to use static - where it would interefere? Or can I add
static to everythign by default?