| 6 April 2002 |
TrimIP() |
| Author | Brian Petersen |
| Action | This function returns a valid IP address trimmed for spaces. |
| Syntax | TrimIP (IPaddress) |
| Parameters | IPaddress (Required / String) Can be @IPADDRESS0 etc. |
| Remarks | An IP-address is a 32 bit address, written as 4 octets seperated by dots (dot notation). 169.54.88.1 and 169.054.088.001 are the same address. If an IP address contains 1 og 2 digit numbers, they have to be written that way or patched up with 0 or 00. An IP address can not contain blanks. The problem with the KiXtart Macro @IPADDRESSx is that it returns the IP address as a string containing four octets of 3 characters seperated by dots. IP addresses containing 1 and 2 digits are patched with blanks, so it has to be trimmed. |
| Returns | This function returns a valid IP address trimmed for spaces |
| Dependencies | None. |
| Examples | |
| Source | |