Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 08:36:57 +0000



[Programming Help] - sc.GetSheetCellAsDouble function

View Count: 222

[2023-09-07 19:20:06]
User373245 - Posts: 42
double currentValue;
sc.GetSheetCellAsDouble(SheetHandle, 43, 2, currentValue);


I am trying to get the value from the spreadsheet sheet when an alert condition is true.

void* SheetHandle = sc.GetSpreadsheetSheetHandleByName(SheetCollectionName, SheetName, true);
This is correct. and the alert condition becoming true is correct

if(LongAlert||ShortAlert)
{
  double currentValue;
sc.GetSheetCellAsDouble(SheetHandle, 43, 2, currentValue);

}

Ive tried double currentValue = 0.0;

I am certain my column and cell are correct. Do I need to build and array for the index of the column lable first and set it equal to current value. The log reports the value as 0.0000 doing it this way? So that means it's not getting the value??? anyone konw the approach to get this to work

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

Login

Login Page - Create Account