Validates a given URL.
VBA : RetVal =
VL : RetVal = (vla-IsURL
(vla-IsUrl util "http://www.afralisp.com")
Object : Utility
The object or objects this method applies to.
The URL to validate.
RetVal : Boolean
TRUE: The string represents a valid URL.
FALSE: The string is not a valid URL.
The definition of a
"valid" URL is application-dependent, in that a given 3rd
party application may not be interested in supporting all Internet
protocols. For instance, an application that attempts to connect users
to Web sites would probably not need to provide access to FTP sites. In
this hypothetical application, a FALSE value would be returned if a URL
that begins with something other than "http://" was entered.
The default functionality
of this method for AutoCAD supports FTP, HTTP, HTTPS, and FILE
(defun c:al-isurl ()
(setq util (vla-get-utility
(setq flag (vla-IsUrl util "http://www.afralisp.com"))