Inolab_L.GIF (12133 bytes)

TInoURL

Version 1.0
Copyright ©1997 Martin Prusa, Inolab

TInoURL is a component for handling Uniform Resource Locator. It has properties which represent parts of an URL address.

Reference :

Property Type Description
BackSlashAllowed boolean Is a back slash ("\") allowed in the URL ? If this property is set to False, the component will automatically replace all back slashes in the URL. State of this property also affects the result of the IsURLValid method.
MachineName string Part of a URL address. e.g. : www.myserver.com
Path string part of a URL address. e.g. : /mydirectory/index.html. It is  possible to use "/mydirectory" as well as "mydirectory".  
Port string Part of a URL address. If you know what ports are, you will be able to use this property properly. Iif you don't know , you don;t have to use this property at all. It isnot a neccessary part of an address. Port value can be for instance "72" or "80" . Don't use the ":" character in this property before the port value (write "80" not ":80").
ProtocolName string Part of a URL address. e.g : http:// or ftp://. It is better to set the ProtocolType property instead of setting this property directly because this may lead to various errors like  wrong spelling of the protocol name (e.g " fpt://" instead of "ftp://).However, it is possible to write to this property directly.
ProtocolType TProtocolType Protocol type. See above.
URL string The URL address. e.g : http://www.myserver.com:80/mydirectory/index.html

 

Method Type Descritpion
Open Procedure Tries to open the URL in the implicit browser.
IsURLValid : Boolean Function Checks the URL whether it is not empty and so on.. See the source code.
Clear Procedure Empties the properties

TProtocolType = (ptFile,
                 ptHTTP,
     	          ptHTTPs,
		  ptFTP,
	          ptGopher,
		  ptMailTo,
		  ptNews,
		  ptTelnet,
		  ptWais,
		  ptUnknown);



How to use :


1. Fill the URL property with an URL address
2. The component will automatically break the URL into several parts represented by the propertties. This works in design time, too.
Example :
Let's fill the URL property with this text :
http://www.myserver.com:72/directory 
That's all. The component now divides the URL to the parts and fills the properties.
Now you can, for example, change the ProtocolType to ptFTP. ProtocolName chenges immedietly and the URL too.
This also works in the reverse direction : Fill in the parts of a URL (MachineName,ProtocolType...) and the component makes the URL.

 

Registering info:

  1. You can test the component without registering it but you are not allowed to use it in your applications unless you register.
  2. Send me an email  where you state that you want to register this component. If you also write your name,company and address, you are considered to be a registered user immedietly and you are allowed to use the component. If you don't include this info, you will be registered when I get the money (which may take several weeks). When you register I will send you the source code as soon as possible (this depends on the info in the email - if you write name ...(see above) in the email, you get registered immedietly and you will get the source much sooner.
  3. Send U.S.$ 7 to address (best with registered mail - it's faster):

    Martin Prusa
    V.Zitka 771
    Kladno 4
    272 04
    Czech Republic

    Because it's only a small amount, it's best to send it in cash.

Legal disclaimer :

THE INFORMATION AND CODE PROVIDED HEREUNDER (COLLECTIVELY REFERRED TO AS "SOFTWARE") IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MARTIN PRUSA BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT,INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MARTIN PRUSA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Contact info :

You can contact me via email : inolab@mbox.vol.cz

Copyright ©1997 Martin Prusa, Inolab. All rights reserved.