Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 20:11:49 +0000



Post From: ACSIL - how to delete (ACSIL) user drawings when time frame is changed?

[2013-07-21 16:08:56]
StevieD - Posts: 39
Just thinking out loud here...

Use a PersistVar to store sc.SecondsPerBar.
Do this only when you do the first drawing in a given timeframe.

Add a PersistVar compare to the sc.LastCallToFunction block
if (sc.LastCallToFunction || (sc.PersistVar->i1 > 0 && sc.PersistVar->i1 != sc.SecondsPerBar))
{
// delete "old" drawings
// reset PersistVar to 0
}

Again, just thinking out loud.
Date Time Of Last Edit: 2013-07-21 16:16:56