VS:Pos/ja

From Vectorworks Developer
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

指定した文字列から指定した文字を検索し、その位置を返します。該当する文字が含まれていない場合は0が返されます。

FUNCTION Pos(
subStr :DYNARRAY[] of CHAR;
str :DYNARRAY[] of CHAR) : INTEGER;
def vs.Pos(subStr, str):
    return INTEGER

Parameters

subStr DYNARRAY[] of CHAR 検索文字
str DYNARRAY[] of CHAR 検索対象となる文字列

Return Value

文字の位置

Example

Loc:=Pos('samp','A sample string');

Version

利用可能バージョン: MiniCAD