Kbase P170309: Assigning variable with value unknown (?) to Value of an UltraDateTimeEditor causes an error in Open
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/20/2010 |
|
Status: Unverified
SYMPTOM(s):
Assigning variable with value unknown (?) to Value of an UltraDateTimeEditor causes an error in OpenEdge 10.2B
DEFINE VARIABLE dt AS date NO-UNDO INITIAL ?.
?
/* In Constructor after InitializeComponent() */
ultraDateTimeEditor1:VALUE = ?. /* Works */
ultraDateTimeEditor1:VALUE = dt. /* Fails */
System.ArgumentException: The control's value cannot be set outside the range determined by the 'MinValue' and 'MaxValue' properties.
FACT(s) (Environment):
Same code executes without error in OpenEdge 10.2A
OpenEdge 10.2B
Windows
CHANGE:
Upgraded to OpenEdge 10.2B
CAUSE:
Bug# OE00199124
CAUSE:
The unknown value in the code gets converted to a nullptr when passed to .NET. The unknown value extracted from a field/variable gets converted to a DateTime() object in this case and the default value for a DateTime() is 01/01/0001, which is outside of the date-range allowed by the control (lowest permitted MinDate is 01/01/1753).
FIX:
Upgrade to 10.2B02