VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@STRDEL

Windows Linux macOS

Syntax

@STRDEL(<string>,<pos1>,<pos2>)

Description

This function returns a string consisting of <string> with the characters in positions <pos1> to <pos2> deleted. The characters in the string are counted from 1.

If <pos1> is omitted or zero then the function returns <string> unmodified. If< pos2> is zero or omitted, just the single character at <pos1> is deleted. If <pos2> is negative, the ending position for the deletion is counted from the end of the string.

OK

Unchanged.

Example

%S = @strdel(%A,4,8)
info Result of deleting chars 4 to 8 from %A is: %S

See also