Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 01:16:34 +0000



Post From: sc.StudyDescription and sc.DocumentationImageURL Broken!

[2020-05-12 16:56:49]
User562525 - Posts: 33
Execute the following code and you will see that both sc.StudyDescription and sc.DocumentationImageURL are empty when printing them!!


#include "sierrachart.h"

SCDLLName("MStudyDesc")

SCSFExport scsf_MStudyDesc(SCStudyInterfaceRef sc)
{    
  if(sc.SetDefaults)
  {
    sc.GraphName="MStudyDesc";
    sc.StudyDescription="STUDY DESCRIPTION";
    sc.DocumentationImageURL="Documentation Image URL";
  
    //Manual looping
    sc.AutoLoop = 0;
    sc.GraphRegion = 1;
    sc.UpdateAlways = 1;

    return;
  }
  
  sc.AddMessageToLog(sc.GraphName,1);
  sc.AddMessageToLog(sc.StudyDescription,1);
  sc.AddMessageToLog(sc.DocumentationImageURL,1);
  sc.AddMessageToLog("===========",1);
}