Message 1 of 9
Detecting right mouse click or enter key

Not applicable
01-10-2002
02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
could some please help me exit this loop...
Do
Set returnObj = Nothing
ThisDrawing.Utility.GetEntity returnObj, basePnt, "Select text to be
changed: "
If returnObj.ObjectName = "AcDbText" Then
Set AllTextObj(intK) = returnObj
AllTextObj(intK).Highlight (True)
intK = intK + 1
ElseIf returnObj.ObjectName = "AcDbMText" Then
Set AllTextObj(intK) = returnObj
AllTextObj(intK).Highlight (True)
intK = intK + 1
Else
MsgBox "You must select a text object."
End If
Loop
What I want to do is exit the loop if the user right mouse clicks or press
enter on the keyboard. But I also need to know if the user pressed the esc
key so I can't test to see if the GetEntity failed. Any ideas....???
Kevin K. Rhines
Do
Set returnObj = Nothing
ThisDrawing.Utility.GetEntity returnObj, basePnt, "Select text to be
changed: "
If returnObj.ObjectName = "AcDbText" Then
Set AllTextObj(intK) = returnObj
AllTextObj(intK).Highlight (True)
intK = intK + 1
ElseIf returnObj.ObjectName = "AcDbMText" Then
Set AllTextObj(intK) = returnObj
AllTextObj(intK).Highlight (True)
intK = intK + 1
Else
MsgBox "You must select a text object."
End If
Loop
What I want to do is exit the loop if the user right mouse clicks or press
enter on the keyboard. But I also need to know if the user pressed the esc
key so I can't test to see if the GetEntity failed. Any ideas....???
Kevin K. Rhines