左辺値はconstオブジェクトに指定されています。
DEFINE
{
const float SLEEP_TIME = 2.0;
integer sloop_count;
}
MAIN
{
if (AIT_FocusWindow("Setup", "#32770",0.0) > 0)
AIT_PlayKey("{Enter}");
AIT_LogMessage("Setup: Enter");
sloop_count = 0;
SLEEP_TIME = 3.0; // 変数「SLEEP_TIME」のconstant値を変更しようとしています
AIT_Sleep(SLEEP_TIME);
endif;
}
DEFINE
{
const float SLEEP_TIME = 3.0;
integer sloop_cnt;
}
MAIN
{
if (AIT_FocusWindow("Setup", "#32770",0.0) > 0)
AIT_PlayKey("{Enter}");
AIT_LogMessage("Setup : Enter");
sloop_cnt = 0;
AIT_Sleep(SLEEP_TIME);
endif;
}