Microsoft Access Function Library: Left()

Started by bbasujon, August 15, 2012, 05:17:51 PM

Previous topic - Next topic

bbasujon

Function: Left()

Purpose: The Left() function returns the specified number of characters of a string, beginning with the leftmost character.

Usage: Left(string, n)

Returns: The leftmost n characters of the specified string.

Example:

Dim MyString() As String = {"Testing, Testing, 123"}
Dim ResultString As String = Left(MyString, 7)

In this example, ResultString would contain "Testing"
Acquire the knowledge and share the knowledge so that knowing,learning then sharing - all are the collection