minkowski wrote:
Date xx = m_jdtTerminationDate.GetValue(); OnLoseFocusDate(xx);
A Reference is in effect, a Compiler Generated and Guaranteed Pointer. Unlike Ordinary Poiners, they cannot be NULL, and in most cases, when you try to do something daft, the compiler will object. This happened in this case! A Reference implicitly points to a value in memory. The result of a Function is essentially not a value in memory, so the compiler objects, It is WRONG! Your Second attempt works, because the reference is an implicit pointer to xx
LateNightsInNewry