Visual Basic and Visual FoxPro functions to format text

VBA

Format()

VFP

Transform()

Common Syntax Notes

These functions offer a bewildering amount of choice. Both languages let you apply different formats to numbers, text and dates. Read Help for the full details.

Repeating characters  |  Text functions  |  Converting text