Support Board
Date/Time: Wed, 27 Nov 2024 20:39:26 +0000
Post From: calling functions from another function
[2023-07-08 19:55:15] |
JohnR - User831573 - Posts: 306 |
Have you seen this part of the docs? ACSIL Programming Concepts: Passing ACSIL Interface Members Structure To Secondary Function Passing ACSIL Interface Members Structure To Secondary Function /*==========================================================================*/ void PassingSCStrutureExampleFunction(SCStudyInterfaceRef sc) { //The "sc" structure can be used anywhere within this function. } /*============================================================================ "An example of calling a function that receives the Sierra Chart ACSIL structure (sc)." ----------------------------------------------------------------------------*/ SCSFExport scsf_PassingSCStrutureExample(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Passing sc Structure Example Function"; sc.StudyDescription = "An example of calling a function that receives the Sierra Chart ACSIL structure (sc)."; return; } // Do data processing // The definition of the function called below must be above this function.a PassingSCStrutureExampleFunction(sc); } Hope this helps, JohnR |