LEFT

Top  Previous  Next

Action

Return the specified number of leftmost characters in a string.

 

 

Syntax

var = LEFT(var1 , n )

 

 

Remarks

var

The string that is assigned.

Var1

The sourcestring.

n

The number of characters to get from the sourcestring.

n :  Byte, Integer, Word, Long, Constant.

 

For string operations, all the strings must be of the same type : internal or external.

 

See Also

RIGHT , MID

 

 

Example

Dim S As Xram String * 15 , Z As Xram String * 15

S = "ABCDEFG"

Z = Left(s , 5)

Print Z                                   'ABCDE

End