JP1/NETM/DM Automatic Installation Toolガイド (Windows(R)用)

[目次][用語][索引][前へ][次へ]

AITCE-0039

breakの使用方法が誤っています。

要因
do-while,while-loop,for-next,またはswitchステートメント以外でbreakステートメントが使用されています。breakステートメントはループ構造体内だけで有効です。
対処
breakステートメントは,do-while,while-loop,for-next,またはswitchステートメント内で使用してください。
誤った指定例
DEFINE
{
   const string ExeVersion = "7.1";
   const string FileVersion = "7.1";
   string stMsgText;
}
MAIN
{
   if (ExeVersion == FileVersion )
      if (AIT_FileExists("#setup.exe") == 0)
         stMsgText = "Setup(Japanese) " + InstallerName + " Not Found";
         AIT_LogMessage(stMsgText);      
         break;      // breakステートメントがifステートメント内にあります
      endif;
   endif;
}
この例では,breakステートメントがif構造体内にあります。
正しい指定例
DEFINE
{
   const string ExeVersion = "7.1";
   const string  FileVersion = "7.1";
   string stMsgText;
}
MAIN
{
   if (ExeVersion == FileVersion)
      if (AIT_FileExists("#setup.exe") == 0)
         stMsgText = "Setup(Japanese) " + InstallerName + " Not Found";
         AIT_LogMessage(stMsgText);
      endif;
   endif;
}
breakステートメントをif構造体から削除しました。