<div dir="ltr">hello, you can refer to cint function.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/9 sihua xu <span dir="ltr"><<a href="mailto:xusihua80@gmail.com" target="_blank">xusihua80@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello everyone</div><div><br></div><div>    I dim an array and get the value from the array randomly, then i set the value into the trial_list to decide the run times of each trial at most</div>

<div>  for example, i dim an array such as a(1) =2, a(2) = 3, then get the value form the array randomly, t = array(2) = 3; and i set the value to the  trial list, it means that  the first trial could run three times at most.</div>

<div>  the code is: <font color="#ff0000">c.setAttrib "pupnumber", t</font></div><div>   after that, in each i get the value of the pupnumber, </div><div>the code is:   </div><div>m = c.getAttrib("pupnumber")<br>

</div><div><br></div><div>then in each trial, i dim the second array, and get the value from the new array randomly, and if the "m" was larger than the value (such as f)get from the new array, the trial stop ahead of time.</div>

<div>the code is: if m> f then ..(stop)......</div><div>but when i run the program, the information prompt "<font color="#ff0000">type mismatch</font>"?</div><div>may be the type of the "m" is not to same with "t", but i could not how to change the type.</div>

<div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">I would be grateful if anybody could help me with that</div><div style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Arial,Helvetica,sans-serif;font-size:13px">

thanks</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><br clear="all"><div><div>Sihua Xu<br><br></div></div><div><br></div>
</font></span></div><span class="HOEnZb"><font color="#888888">

<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 <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAPEBGubsRDOrHw6kCegEVLv1y%2BOpRmyTx7uz2atmtG-L8SQfng%40mail.gmail.com" target="_blank">https://groups.google.com/d/msgid/e-prime/CAPEBGubsRDOrHw6kCegEVLv1y%2BOpRmyTx7uz2atmtG-L8SQfng%40mail.gmail.com</a>.<br>

For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
</font></span></blockquote></div><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/CAJO0WNYxiHA1J%2BzNsTvJM6Nw%2BL1GDrP3PdK4LdA3BbOqDwBm0Q%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CAJO0WNYxiHA1J%2BzNsTvJM6Nw%2BL1GDrP3PdK4LdA3BbOqDwBm0Q%40mail.gmail.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 />