B=button() If b and ボタン定数 then 処理 Endif で他のボタン情報も取得できます