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 source string.
n The number of characters to get from the source string.
n : Byte, Integer, Word, Long, Constant.
For string operations,
all the strings must be of the same type : internal or external.
Example
Dim s As XRAM String
* 15, z As XRAM String * 15
s = "ABCDEFG"
z = Left(s,5)
Print z 'ABCDE
End
|