Login Page - Create Account

Support Board


Date/Time: Sun, 11 May 2025 21:35:19 +0000



Post From: Copy S

[2018-01-07 07:02:15]
User563013 - Posts: 11
I am trying to copy data out from a different study, I access the data with sc.GetStudyArraysFromChartUsingID which needs a SCGraphData variable to copy data into. The problem is now I need to use it as an SCFloatArray. Neither TempArray1 or TempArray2 receives the value (at least in the visualstudio debugger.

How can I copy SCGraphData to an SCFloatArray?


SCGraphData Temp;

sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, 1, Temp);

SCFloatArray TempArray1 = Temp.InternalAccessBaseDataArray(sc.ArraySize - 1);
SCFloatArray TempArray2 = Temp[sc.ArraySize-1];