DCGET ... COMBO KEYDROP

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
Tom
Posts: 1205
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

DCGET ... COMBO KEYDROP

#1 Post by Tom »

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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET ... COMBO KEYDROP

#2 Post by rdonnay »

Tom -

I'll try to look into this soon.

Roger
The eXpress train is coming - and it has more cars.

Post Reply