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はLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

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

Tel: +1 (650) 572-1400