前のトピック: existsResource次のトピック: formatDate


existsSchedule

existsSchedule 関数は、スケジュール オブジェクトが指定されたパスに存在するかどうかを確認します。 絶対パスまたは相対パスで指定可能です。 相対パスは、スクリプトが実行されるプロセスに対する相対パスです。

構文

bExists = existsSchedule(schedulepath

引数

schedulepath (String)

存在を確認する必要のあるスケジュール オブジェクトのフル/相対パスを指定します。

戻り値

bExists (Boolean) 

スケジュール オブジェクトが存在する場合は true を、存在しない場合は false を返します。 

if (existsSchedule("testSchedule")) 
{Process.mseg_schedule= "testSchedule exists" ;} 
else 
{Process.mseg_schedule= "testSchedule does not exist" ;}
if (existsSchedule("testSchedule")) 
{Process.mseg_schedule= "testSchedule exists" ;} 
else 
{Process.mseg_Schedule= "testSchedule does not exist" ;}