LEFT

ls = LEFT (s [,n])

Returns the n number of leftmost chars of string s as string ls. If n is not specified then n = 1.

Example

s = "abcdef"
print LEFT(s)      ' Output: a
print LEFT(s, 3)   ' Output: abc
String
If there is insufficient information on this page and you wish learn more about LEFT, please send an email to smallbasic@gmail.com. You can help to improve information about LEFT by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.