FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Browse and lower case keys
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM

Browse and lower case keys

Posted: Wed Mar 30, 2022 12:46 PM
Hi.

In browses, scan codes from upper and lower case keys seems to be the same...
While in a browse, in a bKeyDown function, how do I know if the user typed a lower or upper case letter ?

Regards.
Maurício Ventura Faria
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: Browse and lower case keys

Posted: Wed Mar 30, 2022 01:06 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM

Re: Browse and lower case keys

Posted: Wed Mar 30, 2022 01:34 PM
karinha wrote:https://vivaclipper.wordpress.com/2014/01/19/asc/

Karinha, its the opposite...
ASC returns the numeric code of a character string and Browses bKeyDown gives me a numeric code of a typed character.
But in the browse, this code is the same for A and a.
It always returns the upper case code, and I need to know if the lower case one was typed...

[[]] Maurício Ventura Faria

P.S. Vai Corinthians!
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Browse and lower case keys

Posted: Wed Mar 30, 2022 05:35 PM

GetKeyState( VK_SHIFT ) --> Shift key is pressed

Regards



G. N. Rao.

Hyderabad, India
Posts: 124
Joined: Mon Nov 14, 2005 10:15 AM

Re: Browse and lower case keys

Posted: Wed Mar 30, 2022 06:30 PM
nageswaragunupudi wrote:GetKeyState( VK_SHIFT ) --> Shift key is pressed

Hi.
This does not work when "CAPS LOCK" is turned off and no SHIFT pressed.
Do you know how do I know CAPS LOCK state ?

[[]] Maurício Ventura Faria
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: Browse and lower case keys

Posted: Wed Mar 30, 2022 07:13 PM
Maurício:

Code (fw): Select all Collapse
cKey:= CHR( nKey )


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion