StringMid (original) (raw)
L
The letter L can be used to extract characters that lie to the left of StartChar rather than to the right. In this example, OutputVar will be set to Red:
InputVar = The Red Fox
StringMid, OutputVar, InputVar, 7, 3, L
If the L option is present and StartChar is less than 1, OutputVar will be made blank. If StartChar is beyond the length of InputVar, only those characters within reach of Count will be extracted. For example, the below will set OutputVar to Fox:
InputVar = The Red Fox
StringMid, OutputVar, InputVar, 14, 6, L