Visual Basic and Visual FoxPro functions to remove spaces

VBA

Trim(), LTrim(), RTrim()

VFP

Trim(), LTrim(), RTrim(), AllTrim()

Common Syntax Notes

The syntax of the languages appears to be very similar but there is a difference in the behaviour of the Trim() function. In VBA Trim() removes leading and trailing spaces; in Visual FoxPro Trim() removes trailing spaces only and performs the same function as RTrim(). Use AllTrim() in VFP to remove leading and trailing spaces.

SubStrings  |  Text functions  |  Finding characters

More tips from Alvechurch Data

More tips from Alvechurch Data

FoxPro DefaultExt function

Using DefaultExt() to correct file extensions in a FoxPro program.

Read More

FoxPro ForceExt function

Using ForceExt() to correct file extensions in a FoxPro program.

Read More

FoxPro JustExt function

Using JustExt() to get the extension from a file name.

Read More