Left$

Result = Left$ ( String [ , Length ] )

Returns the Length first characters of a string. If Length is not specified, the first character of the string is returned. If Length is negative, all the string except the (- Length ) last characters is returned.


Examples

PRINT Left$("Gambas", 4)

Gamb

PRINT Left$("Gambas")

G

PRINT Left$("Gambas", -1)

Gamba