Announcement

Collapse
No announcement yet.

global variable

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

  • global variable

    If I want to pass a variable between two EFS, is tte following structure correct?

    First efs:

    define : var MTM1MIN = null;

    wugh is calculated in the efs.

    in main : setGlobalValue(MTM1MIN,wugh);

    second efs:

    define : var MTM1MIN = null;

    getGlobalValue (MTM1MIN);

    Best Regards,

    Alan

  • #2
    Alan,

    No, that is not correct... Let me try to explain..

    A global variable is like a container for data. You have to give it a unique ID, then populate it with data..

    var GV1ID = null;

    This defines a variable as "null" (nothing). 'null' is not a valid ID for a global variable. You need to define a unique ID...

    GV1ID = "MYID01";

    This is a valid ID for a global variable.

    Now, you can use this ID to populate a global variable..

    setGlobalValue(GV1ID, tData);

    (where tData is calculated in main using some function or other.

    Does that make sense??

    B
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Brad,

      Thank you for the explination. For the receiving efs do I need anything other than

      getGlobalValue(GV1ID);

      Using your example?

      Best Regards,

      Alan

      Comment

      Working...
      X