Home > lang > left 
 fr de es it nl pl pt pt_BR mk sq ca hu tr ar fa vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Left$
Result = Left$ ( Arg AS String [ , Length AS Integer ] ) AS String
Result = Left ( Arg AS String [ , Length AS Integer ] ) AS String

Returns the Length first characters of the string Arg.

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

See also

String Functions