Hi guys,
Tried different options, and did lots of research but with 0 results.
I'm trying to create a script that gets the parameter from a file (.csv comma separated), based on the first column has to select a specific action, then, for each action, has to take the paramenters from the previous said file and populate the variables.
I'm stuck at the beginning still, this is what it looks like:
Start()
{
//string transtype[] = {Parm1};
char transtype[10];
// transtype = lr_eval_string("{Parm1}");
lr_save_string(lr_eval_string("{Parm1}"),"transtype");
TE_wait_sync();
if (transtype == "TS01") {
Trans01();
} else if ("{transtype}" == "TO01"){
Trans02();
} else if ("{transtype}" == "SD01"){
Trans03();
} else if ("{transtype}" == "CP01"){
Trans04();
}return 0;
}
I tried with "char transtype[] = ("{Parm1}")" but doesn't work either, any help?
Thank you all