Support Board
Date/Time: Wed, 22 Jan 2025 09:06:05 +0000
Post From: A question about sc.Input ?
[2018-09-16 14:47:51] |
User210074 - Posts: 63 |
I have a problem with the sc.Input function? I can not put successively over 127 sc.Input[]. The 128 does not work. Beyond 127, nothing works. I put line 128 that was not working, instead of line 127. It works. Is there a limit in number for the function? On the documentation ACSIL Interface Members - sc.Input Array: ACSIL sc.Input[] Members , I did not find anything. #include "sierrachart.h" #include "scstudyfunctions.h" #include <iterator> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <chrono> #include <iomanip> #include <vector> #include <algorithm> #include <list> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> using std::string; using std::to_string; using std::istringstream; using std::ifstream; using std::ofstream; using std::ios_base; using std::getline; using std::size_t; using std::stof; using std::stod; using std::stoi; using std::vector; using std::rand; using std::sort; using std::reverse; using std::lower_bound; using std::upper_bound; using std::advance; SCDLLName("VDP_VDCO_64Bits") SCSFExport scsf_VDP_VDCO_64Bits(SCStudyInterfaceRef sc) { SCInputRef CFG_MAT =sc.Input[0]; /*...*/ SCInputRef SEPT =sc.Input[127];/*ok, It works*/ SCInputRef VDPC_IDVBN_HE =sc.Input[128];/*it does not work*/ if(sc.SetDefaults){ sc.GraphName="VDP_VDCO_64Bits"; sc.GraphRegion=0; sc.AutoLoop=true; sc.FreeDLL=1; CFG_MAT.Name="VDP : CFG "; CFG_MAT.SetCustomInputStrings("Select;- Memory;- Memory + Differe Registration"); CFG_MAT.SetCustomInputIndex(0);/*[0]<- sc.Input[0]*/ /*....*/ SEPT.Name=" ";/*[127]<- sc.Input[127]*/ SEPT.SetString("########VDPC IDVBN######## "); VDPC_IDVBN_HE.Name="IDVBN: Backup schedule ";/*[128]<- sc.Input[128]*/ VDPC_IDVBN_HE.SetDouble(0.00); VDPC_IDVBN_HE.SetDoubleLimits(0.00, 23.59); } } Date Time Of Last Edit: 2018-09-16 20:41:25
|