LEFT$ returns the specified number of characters from the left side of the argument string value.

Syntax

LEFT$(StrExpr$, Length%)

Arguments

  • StrExpr$ is the String Expression to shorten 
  • Length% is the number of characters to include 

Remarks

  1. "NullString" is considered as a DETERMINED emty string.
  2. If Length% exceeds the number of characters in the expression, no extra spaces will be added.

Examples

LEFT$("NullString", 3)

returns

"NullString"


LEFT$("Qnowledge Wageningen", 9)

returns

"Qnowledge"


LEFT$("Qnowledge Wageningen", 0)

returns

"NullString"


LEFT$("Qnowledge Wageningen", 50)

returns

"Qnowledge Wageningen"


 

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview


  • No labels