Hi there,<br><br>I am currently making a programme in which I have set up a number of attributes that I want the participant to be able to change mid schedule. I have tried two strategies to achieve this but both have failed. I will detail both them below. The first is to use inline code:<br><br>Dim t, v, d as integer<br><br>t% = Answerbox ("Are you happy with the speed and size of stimuli?", "No", "Yes")<br><br>If t<1 Then<br><br> v% = Answerbox("Select your new speed", "Fast", "Medium", "Slow" )<br><br> MsgBox "Your new speed is" & v%<br><br> d% = Answerbox("Select your new circle size", "Small", "Medium", "Large" )<br><br> MsgBox "Your new circle size is" & d%<br><br> c.SetAttrib"speed1", 12.5*"d%"<br><br> c.SetAttrib"Circle", 5*"d%"<br><br> Sleep 2000<br><br>Else<br><br>Sleep 2000<br><br>End<br><br><br>So I want the program to ask a question initially to see whether the participant wants to change the setting using Answerbox. If they are happy the program should finish. If they are not fine with them then I would like to ask two questions that enable them to change the values of v and d. These variables are then used to set the attributes for speed1 and Circle. The error that I get is that the identifier is already a variable in the first line<br><br>The second strategy I used was to create a Textdisplay asking for inputs. The display records the information correctly and I have set up an echo too. The problem I have is assigning the input to the attributes. So how do I make it that when the participant enters 15 into the text display this assigns [Circle] to that value? I have tried one solution using inline as follows.<br><br>Dim a as integer<br><br>CInt(TextDisplay3.Name & ".RESP")=a<br><br>c.SetAttrib"Circle", a<br><br>As I understand it, TextDisplay3.Name & ".RESP" is the string for the response in the previous slide. By making it an integer I can then use c.SetAttrib to change the value of a circle. However I get the error that I cannot assign to a constant in the second line.<br><br>Help on either method would be greatly appreciated, <br><br>Thank you,<br>Cameron<br>
<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/msg/e-prime/-/HcX-oI12tIYJ">https://groups.google.com/d/msg/e-prime/-/HcX-oI12tIYJ</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />