Kbase P126832: Assigning DTpicker control value to a DATETIME variable provides wrong result
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/9/2007 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.x
Windows
SYMPTOM(s):
Using Microsoft Date and Time Picker Control (DTpicker)
Control Frame has HonorProKeys=true set
controlframe:DTPicker:Value property assigned to DATETIME variable
Assign statement is in LEAVE trigger of control frame
New date typed into the DTpicker control
TAB key used to leave the control
DATETIME variable gets the old value of the control assigned
CAUSE:
When the focus leaves the DTpicker control, due to order in which the ABL client and the control receive and handle the events involved the value property of the DTpicker does not get reset to the new value before the ABL client reads.
FIX:
Avoid assigning the OCX value in the trigger.
Instead, delay the assign until it the point just before the variable is first processed.