Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continuous mousedown
Message
From
28/09/2006 17:27:08
 
 
To
28/09/2006 15:11:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01157829
Message ID:
01157994
Views:
14
>>>A quick example:
>>>
>>>
>>>
>>>	Procedure command1.MouseUp   &&(1)
>>>	Lparameters nButton, nShift, nXCoord, nYCoord
>>>	Thisform.label1.Caption = "MOUSE UP"

>>>	Thisform.timer1.Enabled = .F.
>>>	Endproc
>>>
>>
>>
>>	Procedure command1.MouseUp   &&(2)
>>	Lparameters nButton, nShift, nXCoord, nYCoord
>>	Thisform.timer1.Enabled = .F.
>>	Thisform.label1.Caption = "MOUSE UP"
>>	Endproc
>>
>
>Fabio:
>
>I said it was a "quick" example :-). Why do you think (2) is better than (1)? If you say so, I am shure there must be a good reason, can you explain it for me. In production code, label1 and those caption settings would'nt even be there I think.
>
>Carlos

The caption can end with a wrong value:
>>>	Thisform.label1.Caption = "MOUSE UP"
* the timer event can to be called here ( with Autoyield = .T. )
>>>	Thisform.timer1.Enabled = .F.
Previous
Reply
Map
View

Click here to load this message in the networking platform