Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 19:53:12 +0000



Post From: ACSIL Help with resetting variables on symbol change.

[2024-02-16 19:27:58]
User92573 - Posts: 530
Dear Support Board

Can anyone provide some help with resetting variables on symbol change.

I have the following:


// Do Processing

SCString SYM = sc.Symbol.GetChars();  
SCString str_CURRENT_SYM;

if(str_CURRENT_SYM != SYM)
{
  // clear values
}


..... etc. etc.

{
  // code blocks
}

// last line before closing bracket
str_CURRENT_SYM = SYM;

But clearly I've got it wrong.

Any help appreciated.

Many thanks