PHP Code:
temp.cmds = 1;
temp.cmda = this.( "load_" @ slotindex + 2).tokenize( "->")[ 0];
temp.cmdb = this.( "load_" @ slotindex + 2).tokenize( "->")[ bindex];
temp.cmdc = { temp.cmda, temp.cmdb};
temp.cmdt = { "event", "action"};
for ( t = 0; t < 2; t ++) {
if ( temp.cmdc[ t].length() > 0) {
if ( temp.cmdc[ t].pos( "(") = - 1)
this.( "c" @ temp.cmdt[ t]) = requestCommandIndex( temp.cmdc[ t]);
else {
this.( "c" @ temp.cmdt[ t]) = requestCommandIndex( temp.cmdc[ t].substring( 0, temp.cmdc[ t].pos( "(")));
if ( this.draw_icons[ this.caction][ 6] == 2) {
temp.cmdm = "";
temp.cmds = this.draw_icons[ this.caction][ 8].index( temp.cmdc[ t].substring( temp.cmdc[ t].pos( "(") + 1, temp.cmdc[ t].pos( ")") - temp.cmdc[ t].pos( "(") - 1));
temp.cmdb = "dropdown";
echo("Debug (t - temp.cmds): " @ t @ " - " @ temp.cmds);
}
else {
temp.cmdm = temp.cmdc[ t].substring( temp.cmdc[ t].pos( "(") + 1, temp.cmdc[ t].pos( ")") - temp.cmdc[ t].pos( "(") - 1);
temp.cmdb = temp.cmdt[ t].substring( 0, 1).upper() @ temp.cmdt[ t].substring( 1).lower();
}
initTextbox( temp.cmdb, temp.cmds);
if ( temp.cmdm != "")
( temp.cmdb @ "_Param").text = temp.cmdm;
this.( temp.cmdt[ t].substring( 0, 1) @ "textbox") = 1;
}
}
}
Rc keeps giving an error that a loop limit has been exceeded, anyone knows why? I mean.. it only makes a loop till 2.. so it shouldn't do anything wrong.