IsURL Method |
Validates a given URL.
Signature
RetVal = object.IsURL(URL)
Object
Utility
The object or objects this method applies to.
LocalFile
String; input-only
The URL to validate.
RetVal
Boolean
TRUE: The string represents a valid URL.
FALSE: The string is not a valid URL.
Remarks
The definition of a "valid" URL is application-dependent, in that a given third-party application may not be interested in supporting all Internet protocols. For instance, an application that attempts to connect users to websites 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 protocols.
Comments? |