change string to integer

35 views
Skip to first unread message

sihua xu

unread,
Nov 9, 2013, 10:51:08 AM11/9/13
to e-p...@googlegroups.com
Hello everyone

    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
  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.
  the code is: c.setAttrib "pupnumber", t
   after that, in each i get the value of the pupnumber, 
the code is:   
m = c.getAttrib("pupnumber")

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.
the code is: if m> f then ..(stop)......
but when i run the program, the information prompt "type mismatch"?
may be the type of the "m" is not to same with "t", but i could not how to change the type.
I would be grateful if anybody could help me with that
thanks


Sihua Xu


gorgeous yayuan geng

unread,
Nov 10, 2013, 10:11:52 PM11/10/13
to e-p...@googlegroups.com
hello, you can refer to cint function.



2013/11/9 sihua xu <xusi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAPEBGubsRDOrHw6kCegEVLv1y%2BOpRmyTx7uz2atmtG-L8SQfng%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages