Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

MID$ returns the specified number of characters starting at Position% of the argument string value.


Syntax

MID$(StrExpr$StrExpr$, Position%, [Length%])

Arguments

  • StrExpr$ is StrExpr$ is a string expression
  • Position% is Position% is the starting position of the substring 
  • Length% is Length% is an optional integer value containing the number of characters for the substring to contain

Remarks

  1. NullString is NullString is considered as a DETERMINED empty DETERMINED empty string 
  2. If Length% is omitted, the full remaining part of the string is adopted.

Examples

MID$("NullString", 3, 1) returns   returns "NullString"


MID$("Qnowledge Wageningen", 8, 6) returns   returns "ge Wag"


MID$("Qnowledge Wageningen", 8) returns   returns "ge Wageningen"


MID$("Qnowledge Wageningen", 8, 50) returns   returns "ge Wageningen"


 

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