Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 04:47:50 +0000



[User Discussion] - "For" Loop inside of a struct

View Count: 744

[2015-11-06 20:37:57]
User126996 - Posts: 30
Need a clue why the following "for" loop will not work inside of my struct. It won't compile.

int CD_Status;
int MyArray[5];
int index;

struct s_PermData
{
for (index = 0; index < 5; index++){
MyArray[index] = CD_Status;
}
    
    
};

s_PermData* PermData;
PermData = (s_PermData*)sc.StorageBlock;


Any insight would be appreciated.
[2015-11-06 21:55:54]
User126996 - Posts: 30
Disregard above questions. Figured it out

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account