Quote:Thanks Erika. Could it be done that it will work in Retrieve Spec only when @mode ( ) = 2 is used ? This should eliminate backward compatibility problem.
Unfortunately, what you suggest is not logically possible without some sort of assistance from the deity of your choice.
Take this statement, for example:
Name = "Arbuckle"
It is not wrapped in @Mode at all. Therefore, it doesn't specifically indicate that we
shouldn't run from a Retrieve Spec... So, should we run it? We have no way to know.
However, you say no. It's not wrapped in @Mode() = 2, so don't run it. Well, okay, but it's not always that simple.
As an example of the much more difficult case, look at this event program.
var vName as String
vName = "Arbuckle"
If @Mode() = 2
{
LastName = vName
}
LastName = "Godfrey"
Which portion of the example above do we run? If we only run the part inside the @Mode, then we have not set the variable.
We haven't even mentioned the compiler issues. We can't only compile parts of your code. We have to compile all of it. Otherwise, we won't even have the variable being used inside the @Mode condition.
What you, as a human, manage automatically by looking at your code and saying "Oh, well I'll only pick out the parts I want." is an extraordinarily complex task for a machine that, on it's best day, has the intelligence of a caterpillar.