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

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

AITCE-0009

case内で識別子は使用できません。

要因
case内で識別子を指定しています。
対処
case内では,定数またはマクロだけを使用してください。
誤った指定例
DEFINE
{
   const string FileVersion = "7.1";
   string stMsgText;
}
MAIN
{
   switch (FileVersion)
      case stMsgText:      // caseに識別子が指定されています
         ...
         break;
      default:
         ...
         break;
   endswitch;
}
case内に,識別子「stMsgText」が指定されています。
正しい指定例
DEFINE
{
   const string FileVersion = "7.1";
   string stMsgText;
}
MAIN
{
   switch (FileVersion)
      case "7.1":      // 識別子の代わりに文字列定数を指定しました
         ...
         break;
      default:
         ...
         break;
   endswitch;
}
case内に,識別子「stMsgText」の代わりに文字列定数を指定しました。