Nachricht 1 von 5
Help with util.InitializeUserInput use
Nicht anwendbar
08-17-2002
04:57 PM
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Melden
Hello,
I am trying to use keywords in response to a getpoint function. For some
reason, VBA goes into an unhandled error. What am I doing wrong? I need
to pick a point or simply ENTER or type Open, Close, Fir Spline Xit in
response to getpoint.
See attached code below. Any pointers are greatly appreciated.
Regards
Rakesh
On Error Resume Next
kwdLst = "Open Close Fit Spline Xit"
util.InitializeUserInput 128, kwdLst
pt1 = util.GetPoint(, vbCrLf + "Pick first point:")
If Err Then
If StrComp(Err.Description, "User input is a keyword", 1) = 0 Then
' One of the keywords was entered
kwd = util.GetInput
util.Prompt "Keyword entered was: " + kwd
Else
util.Prompt "Error in point selection" + Err.Description
Err.Clear
End If
Err.Clear
End If
--
AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @
http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
I am trying to use keywords in response to a getpoint function. For some
reason, VBA goes into an unhandled error. What am I doing wrong? I need
to pick a point or simply ENTER or type Open, Close, Fir Spline Xit in
response to getpoint.
See attached code below. Any pointers are greatly appreciated.
Regards
Rakesh
On Error Resume Next
kwdLst = "Open Close Fit Spline Xit"
util.InitializeUserInput 128, kwdLst
pt1 = util.GetPoint(, vbCrLf + "Pick first point:")
If Err Then
If StrComp(Err.Description, "User input is a keyword", 1) = 0 Then
' One of the keywords was entered
kwd = util.GetInput
util.Prompt "Keyword entered was: " + kwd
Else
util.Prompt "Error in point selection" + Err.Description
Err.Clear
End If
Err.Clear
End If
--
AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @
http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter