First Post.
My name is Antulio Sardi, working with FPD26 since when i can't remember, and still stuck on it with hard resistance to upgrade my coding habits to visual/object new stuff, (kind'a nerd... i know!), enough for meets, going to the stuff...
As many of us know, both of those functions ( CAPS()/NUML() ) doesn't change the keyboard light under XP.
The only thing one can do is to trap the ACTUAL status of the NUMLOCK and/or CAPSLOCK in the screen and encourage the user to select the apropriate mode to satisfy the system/user needs.
But when i use NUML() to get the status i always get the wrong value, then i found using the next code to get what i need:
And then, i get the proper value...
My question is why, if someone knows...
BTW: Never tried with CAPS()/never need it...
My name is Antulio Sardi, working with FPD26 since when i can't remember, and still stuck on it with hard resistance to upgrade my coding habits to visual/object new stuff, (kind'a nerd... i know!), enough for meets, going to the stuff...
As many of us know, both of those functions ( CAPS()/NUML() ) doesn't change the keyboard light under XP.
The only thing one can do is to trap the ACTUAL status of the NUMLOCK and/or CAPSLOCK in the screen and encourage the user to select the apropriate mode to satisfy the system/user needs.
But when i use NUML() to get the status i always get the wrong value, then i found using the next code to get what i need:
Code:
NUMLCK=NUMLOCK()
NONLCK=NOT NUMLCK
NUMLCK=NOT NONLCK
And then, i get the proper value...
My question is why, if someone knows...
BTW: Never tried with CAPS()/never need it...