mid

Return a substring of a given source string, specifying the substring’s size as well as its starting location within the source.

Syntax

string mid(string str, integer startLoc, integer len)

Parameters

Return Value

Returns a string containing len characters from string str, beginning at startLoc. If startLoc is greater than the number of characters in str, return a zero-length string (""). If there are fewer than startLoc + len characters in str, all characters from the start position to the end of str are returned.

Example

Test Lines

Result


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400