Phone - Display and store UK telephone numbers ============================================== File: Phone - Update: 1.00 Author: J.G.Harston - Date: 23-Apr-1995 The Phone library provides functions to display, store and retrive UK geographical telephone numbers (01 and 02 ranges). Requirements and Dependancies ============================= None. Convert telephone number string to integer ========================================== DEFFNPhone_FromStr(phone$) Converts the supplied telephone number into a four-byte integer representation. Any non-digit characters are ignored. Convert integer to telephone number string ========================================== DEFFNPhone_ToStr(number%) Converts the four-byte integer representation of a UK telephone number into a fixed-length 11-character telephone number string. Convert integer to formatted telephone number string ==================================================== DEFFNPhone_ToStrF(number%) Converts the four-byte integer representation of a UK telephone number into a correctly-formatted fixed-length 13-character telephone number string. Notes ===== Behaviour is undefined for numbers outside the geographical 01 and 02 ranges. Only the 2,000,000,000 numbers in the range 01000000000 to 02999999999 are compressible into a four-byte integer. Version History =============== 1.00 23-Apr-1995 First version written.