General information
Category:
Coding, syntax & commands
>Hi,
> Thank you for reply...
> I have put the DOEVENT command in my loop....there are still a few problem..
> 1. if the previous statement before doevent is processing, the event will not fired and it appear like semi click (button down but not clicked)...
> 2. how could i exit the loop if the click even for the particular button clicked??
Try something like this...
Have a property in your button or form, or whatever that when the button is clicked will be changed to true... for example...
Button - Click()
this.lCancelNow = .t.
Here would be your loop code...
* get reference to the button
oButton = thisform.whatever.cbmButton
do while loopthatgoesforever
if mdown() and sys(1270) = oButton
doevents
endif
if oButton.lCancelNow = .t.
* clean up loop stuff
exit
endif
enddo
BOb
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only