Home > Archive > FoxPro Help and Support > June 2005 > inkey(0,m)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author inkey(0,m)
bijan

2005-06-04, 9:23 am

i put inkey(0,M) in my click event on my command button i want act on click
mouse therefore i put Min inkey() funkion but i got error
could you help me why it dont work
Josh Assing

2005-06-04, 11:24 am

I don't understand why you want inkey() in the click method... it doesn't make
sense.


On Sat, 4 Jun 2005 06:05:11 -0700, "bijan" <bijan@discussions.microsoft.com>
wrote:

>i put inkey(0,M) in my click event on my command button i want act on click
>mouse therefore i put Min inkey() funkion but i got error
>could you help me why it dont work



---
Remove x's to send.
bijan

2005-06-04, 8:24 pm

hi
i checked in a part of my program inkey() if person press Esc exit else
continue program but i press a command buttom for continue program and i want
checked if
a person press it programm continue therefor i need it

"Josh Assing" wrote:

> I don't understand why you want inkey() in the click method... it doesn't make
> sense.
>
>
> On Sat, 4 Jun 2005 06:05:11 -0700, "bijan" <bijan@discussions.microsoft.com>
> wrote:
>
>
>
> ---
> Remove x's to send.
>

Josh Assing

2005-06-06, 3:24 am

use the keypress event.
on key label command


On Sat, 4 Jun 2005 12:31:01 -0700, "bijan" <bijan@discussions.microsoft.com>
wrote:
[color=darkred]
>hi
>i checked in a part of my program inkey() if person press Esc exit else
>continue program but i press a command buttom for continue program and i want
>checked if
>a person press it programm continue therefor i need it
>
>"Josh Assing" wrote:
>


---
Remove x's to send.
Dan Freeman

2005-06-06, 11:24 am

This still makes no sense.

If you want to check whether the mouse was clicked, well, that's what causes
the click method to run. You certainly don't need Inkey() inside the click
method. Inkey() "swallows" the mouse click as if it never happened, but
you're already in the method caused by what you're trying to swallow ... I'd
just expect things to get very confused.

Dan

bijan wrote:[color=darkred
]
> hi
> i checked in a part of my program inkey() if person press Esc exit
> else continue program but i press a command buttom for continue
> program and i want checked if
> a person press it programm continue therefor i need it
>
> "Josh Assing" wrote:
>


Alan C. Sheffield

2005-06-09, 8:25 pm

Inkey() will not do what you want.

I would suggest using the mousedown() to track if the mouse was used and use
lastkey() to see what key they last pressed.

Alan
Programmer
Park West Gallery


"bijan" <bijan@discussions.microsoft.com> wrote in message
news:5941EB71-81D7-4604-A30E- DA217C395E24@microso
ft.com...
> hi
> i checked in a part of my program inkey() if person press Esc exit else
> continue program but i press a command buttom for continue program and i

want[color=darkred]
> checked if
> a person press it programm continue therefor i need it
>
> "Josh Assing" wrote:
>
doesn't make[color=darkred]
<bijan@discussions.microsoft.com>[color=darkred]
click[color=darkred]



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com