VS:Pos/ja: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
(No difference)
|
Latest revision as of 14:35, 12 August 2013
.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