Convert string to UK phone number format

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
Takes a string containing a numeric phone number and returns the same string converted into UK phone number format e.g. converts 02078881234 to (020) 7888 1234 or 01322888123 to (01322) 888 1234

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: