M
Mark A. Sam
Hello,
I too the following Event Procedure from the MouseMove Property of selected
controls:
Private Sub Box241_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If [SelectAreas] <> 2 Then
[SelectAreas] = 2
Call SelectAreas_AfterUpdate
End If
End Sub
And created a Public Procedure in side of the form module:
Public Sub MouseMove2()
If [SelectAreas] <> 2 Then
[SelectAreas] = 2
Call SelectAreas_AfterUpdate
End If
End Sub
Assigning the Function to the control's MouseMove property:
=MouseMove2()
I get the following Message:
The expression On Mouse Move you entered as the event property setting
produced the following error: The expression you entered contains invalid
syntax:
*Expression may not result in the name of a macro, the name of a
user-defined function, or {Event Procedure].
*There may have been an error evaluating the function, event, or macro.
The Function the the call to the Event Procedure work fine and generates an
err =0 with no err.description. If I put a break on the End Sub statement,
I get no problems until I step out of that. On the screen, things work
exactly as they should. I see no reason for the err and need to get rid of
it. Thanks for any help.
God Bless,
Mark A. Sam
I too the following Event Procedure from the MouseMove Property of selected
controls:
Private Sub Box241_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If [SelectAreas] <> 2 Then
[SelectAreas] = 2
Call SelectAreas_AfterUpdate
End If
End Sub
And created a Public Procedure in side of the form module:
Public Sub MouseMove2()
If [SelectAreas] <> 2 Then
[SelectAreas] = 2
Call SelectAreas_AfterUpdate
End If
End Sub
Assigning the Function to the control's MouseMove property:
=MouseMove2()
I get the following Message:
The expression On Mouse Move you entered as the event property setting
produced the following error: The expression you entered contains invalid
syntax:
*Expression may not result in the name of a macro, the name of a
user-defined function, or {Event Procedure].
*There may have been an error evaluating the function, event, or macro.
The Function the the call to the Event Procedure work fine and generates an
err =0 with no err.description. If I put a break on the End Sub statement,
I get no problems until I step out of that. On the screen, things work
exactly as they should. I see no reason for the err and need to get rid of
it. Thanks for any help.
God Bless,
Mark A. Sam