Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 10:53:45 +0000



Post From: Problem with Alert being triggered multiple times

[2023-12-11 09:59:40]
BenjFlame - Posts: 324
Hi,
this is code but It could be a general problem so it's not "programming help".

On my ACSIL code I have:


bool BarHasClosed = sc.GetBarHasClosedStatus(sc.Index) != BHCS_BAR_HAS_NOT_CLOSED;
if (BarHasClosed)
{
sc.PlaySound(30, "test alert message");
}

Any time I load chart or modify it, that alert will trigger 24 times.
I see no reason for this. What is the cause?

Then, it will trigger properly upon BarHasClosed. The problem is really upon initial load or modification.
Date Time Of Last Edit: 2023-12-11 10:02:59