LEFT$()
Jump to navigation
Jump to search
![]() |
![]() |
![]() |
![]() |
Description
- Returns the specified number of characters starting from the left side of a string.
Syntax
- left$(string, number)
Hints
- If number is zero or less, an empty string ("") is returned.
- If number is the length of the string or greater, the full string will be returned.
Example
' Assign refernce name print "Your request has been received." print input "Please enter your last name: "; name$ input "Please enter your age: "; age$ print print "Thank you. Your file reference name will be: "; left$(name$, 5)+age$ print print "Please use that name in future correspondence." ' Code continues end
Useful Procedures
' Place a useful function or sub using this keyword here