Making a GUI using SAS and loading in data from .csv files.I found this code on one of the threads, but when I load my .csv file in it shoots me this error. Below is the code:
Cheers,
Tyler
Name Unresolved: state in access or evaluation of 'state' , state/*###*/
//Call CreateBivariate to do a bivariate (two variable) analysis\
status = List(0,0);
New Window("Custom Analysis",
H List Box(
V List Box(
Panel Box("Controls",
Text Box("Choose Analysis"),
choice = Check Box({"Distribution","Bivariate"},
current = choice << Get(1);
If( And( current, Not(state[1] ) ),
dt << Append(
dt = V List Box(
dt<< Distribution( Y(:Column(14)), X(:Column(16) ) )
)
);
status[1]=1; //mark as present
);
If( And( Not( current ), status[1] ),
dt << Delete;
status[1]=0;
);
current = choice << Get(2);
If( And( current, Not(state[1] ) ),
bv << Append(
bv1 = V List Box(
dt<< Bivariate( Y(:Column(14)), X(:Column(16)) ) )
)
);
status[2]=1; //mark as present
If( And( Not( current ), status[2] ),
bv1 << Delete;
status[2]=0;
);
)
)
),
dt = V List Box()
)
);