DCGET ... COMBO KEYDROP
Posted: Wed Oct 07, 2015 2:52 am
Hi, Roger.
If a get is empty and a valid character key is pressed with use of the "KEYDROP"-clause, the combo will pop up. But this won't happen if the GET is cleared or visited for the second time. This is because the iVar "comboFlag" is set to .T. when the keydrop fires for the first time - and it's never resetted again. A workaround in the get is this:
GOTFOCUS {|a,b,o|o:ComboFlag := .F.} ;
This helps if the get is visited for the second time, but not in the situation that it is cleared.
If a get is empty and a valid character key is pressed with use of the "KEYDROP"-clause, the combo will pop up. But this won't happen if the GET is cleared or visited for the second time. This is because the iVar "comboFlag" is set to .T. when the keydrop fires for the first time - and it's never resetted again. A workaround in the get is this:
GOTFOCUS {|a,b,o|o:ComboFlag := .F.} ;
This helps if the get is visited for the second time, but not in the situation that it is cleared.