Announcement

Collapse
No announcement yet.

Advanced GET Study Class missing?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Advanced GET Study Class missing?

    The following returns " Can not find internal class to construct study" on study definition line in initMain. Please help (I am an advanced get user).

    /* ---------------------- test shell -----------------------*/

    var Gn_entryCount = 0;
    var Gn_barCount = 0;
    var Gb_newBar = false;
    var Gb_mainInit = false;
    var G_study = null;

    function preMain () {
    debugClear();
    setPriceStudy (true);
    setStudyTitle ("test shell");
    }

    function main () {
    var nBarState = null;

    if (!Gb_mainInit) {
    initMain()
    Gb_mainInit = true;
    }
    Gn_entryCount ++;
    nBarState = getBarState();
    Gb_newBar = false;
    if (nBarState == BARSTATE_NEWBAR) Gb_newBar = true;

    if (Gb_newBar) {
    Gn_barCount ++;
    y = G_study.getValue(GetStochStudy.MARKS);
    debugPrintln (" y = ", y);
    }
    }

    function initMain () {
    G_study = GetStochStudy(14,3,3);
    }

  • #2
    Re: Advanced GET Study Class missing?

    MBender
    You omitted to add the new constructor when initializing the GetStochStudy() ie
    G_study = new GetStochStudy(14,3,3);
    FWIW this is the same error you had in the script posted in thi9s thread
    Alex


    Originally posted by MBender
    The following returns " Can not find internal class to construct study" on study definition line in initMain. Please help (I am an advanced get user).

    /* ---------------------- test shell -----------------------*/

    var Gn_entryCount = 0;
    var Gn_barCount = 0;
    var Gb_newBar = false;
    var Gb_mainInit = false;
    var G_study = null;

    function preMain () {
    debugClear();
    setPriceStudy (true);
    setStudyTitle ("test shell");
    }

    function main () {
    var nBarState = null;

    if (!Gb_mainInit) {
    initMain()
    Gb_mainInit = true;
    }
    Gn_entryCount ++;
    nBarState = getBarState();
    Gb_newBar = false;
    if (nBarState == BARSTATE_NEWBAR) Gb_newBar = true;

    if (Gb_newBar) {
    Gn_barCount ++;
    y = G_study.getValue(GetStochStudy.MARKS);
    debugPrintln (" y = ", y);
    }
    }

    function initMain () {
    G_study = GetStochStudy(14,3,3);
    }

    Comment


    • #3
      Thanks.

      I know it was something simple.

      Comment

      Working...
      X