Announcement

Collapse
No announcement yet.

calling efs/eSignal global object

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

  • calling efs/eSignal global object

    How can global variable names be accessed?
    For example in the script below the commented out variables are created via a for loop, but how can they be listed?
    What is the reserved word for the eSignal global object so it can be accessed via something like "var variable_Names = Object.keys(object??); " in the bInit block below?

    Thanks.

    Wayne

    PHP Code:
    var bInit=false;
    for(var 
    ix=0;ix<4;ix++){
        eval (
    "do" ix "=null");
        for(var 
    iy=0;iy<8;iy++){
            eval(
    "return" ix iy "=null");
        }
    }
    /*
    /*
    var do0=null,do1=null,do2=null,do3=null;
    var return00=null,return01=null,return01=null,return03=null,return04=null,return05=null,return06=null,return07=null;
    var return10=null,return11=null,return12=null,return13=null,return14=null,return15=null,return16=null,return17=null;
    var return20=null,return21=null,return22=null,return23=null,return24=null,return25=null,return26=null,return27=null;
    var return30=null,return31=null,return32=null,return33=null,return34=null,return35=null,return36=null,return37=null;
    */
    function main(){
                  
        if (!
    bInit) {
            var 
    variable_Names Object.keys(object??); 
                    
    debugPrintln("208: "+variable_Names);
            
    bInit=true;
        }

    Last edited by waynecd; 12-03-2015, 01:36 PM.
Working...
X