i="-------------------------------" mes i a="ABCDEFG" mes "もとの文字列="+a strmid b,a,0,3 mes "左から3文字を取り出す="+b strmid b,a,-1,3 mes "右から3文字を取り出す="+b strmid b,a,2,3 mes "2文字目から3文字を取り出す="+b mes i instr c,a,"FG" mes "文字列「FG」のある場所="+c instr c,a,"AB" mes "文字列「AB」のある場所="+c instr c,a,"GH" mes "文字列「GH」のある場所="+c mes i stop