Just a Small Queries About Declaring Classes Instances

 
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart() {
    TestFunction(testClassInstance1);
}
//+------------------------------------------------------------------+

class TestClass {
public:
    string testString;
};
TestClass testClassInstance1;
TestClass testClassInstance2;
TestClass testClassInstance3;

void TestFunction(TestClass test) {
    Alert(test.testString);
}

I Hope You Got The Point Of What I want To do (By looking at the code).

Is There Any Way To Do That or something like that?

 
Kailash Bai Mina:Is There Any Way To Do That or something like that?


Declare your class before OnStart.

Reason: