<div dir="ltr">Hi All,<br> Is there any way for an attribute cell (within a list) to call for a value, rather than just use the value in the cell?<br><br>currently, if i put a string variable name in the attribute cell in a list (e.g. randomColor(0) ), it tries to find a file name that is the variable name (tries to find file,"randomColor(0)" ). rather, i would like it to look up the value stored by the variable and use THAT string as a filename.<br><br>as i build complexity into this task, my current solution becomes a pain, but my current solution is below:<br><br><br>---<br><br>i want to randomize a list of colors at the beginning, but to keep the value the same for the rest of the experiment.<br><br>first inline<br><br>Dim randomColor(3) as String<br>randomColor(0)="red.bmp"<br>randomColor(1)="blue.bmp"<br>randomColor(2)="yellow.bmp"<br>randomColor(3)="green.bmp"<br>Randomize<br>randomizeArray randomColor<br><br>while ColorAssignCount < 49 '48 training trials<br><br>Train.SetAttrib ColorAssignCount, "Color1", randomColor(0)<br>Train.SetAttrib ColorAssignCount, "Color2", randomColor(1)<br>Train.SetAttrib ColorAssignCount, "Color3", randomColor(2)<br>Train.SetAttrib ColorAssignCount, "Color4", randomColor(3)<br><br>ColorAssignCount = ColorAssignCount + 1<br><br>wend<br>--<br><br>it would be simpler to be able to call, within each list, 'randomColor(0)', as i will eventually have many lists and other elements that need randomization in a similar way. <br><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/05910ed9-26aa-4638-9a92-a629eb513946%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/05910ed9-26aa-4638-9a92-a629eb513946%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />