The list data below (LotSlot_Start) was extracted from a list box in an app I am creating. I am trying to turn it into a matrix with of form [14, 13]. The below gives me what I want, but I want to be able to do it for any number of entries.
LotSlot_Start = {"14", "13"};
//This gives me what I want: slot_start = [14, 13]
Slot_Start=Matrix(num(lotslot_start[1]));
Slot_Start=v concat(slot_start,Matrix(num(lotslot_start[2])));
show(Slot_Start);I have created this script:
//This crashes jmp and I can't figure out why
for(i=1, i=nitems(lotslot_start), i++,
If(i==1, Slot_Start=Matrix(num(lotslot_start[i])));
If(i>1, Slot_Start=v concat(slot_start,Matrix(num(lotslot_start[i]))));
);
show(Slot_Start);
But it always crashes JMP when I try to run it. I can't figure out why. Any help would be appreciated.
Thanks,