The Mudcat Café TM
Thread #28443   Message #354561
Posted By: MudGuard
10-Dec-00 - 04:24 PM
Thread Name: BS: Is this comprehensible?
Subject: RE: BS: Is this comprehensible?
You could also use an int parameter (called e.g. WhichFunction) which takes (e.g.) value 1 for function 1, 2 for function 2 and so on, and within your ForEach function you have a
  switch (WhichFunction)
{
case 1: function1(...);
    break;
case 2: function2(...);
    break;
//and so on
}

MudGuard