Feedback on the same screen as stimulus
Susan Campbell
susangc7 at gmail.com
Tue May 22 14:42:23 UTC 2012
Hi,
Your problem is the "Else c.GetAttrib()=c.GetAttrib() Then" line -- that
should either just be "Else" with no condition, or "ElseIf" if you want to
do a logical test. It's a problem with the overload of the "=" operator in
VBA, I guess -- it's trying to do an assignment, since it doesn't see any
reason to do a test.
HTH,
Susan
On Tuesday, May 22, 2012 10:30:17 AM UTC-4, Beckerlab wrote:
>
> Hi David, thanks for the quick reply.
>
> I wrote my post in frustration and have deleted it...as it was just
> frustration.
>
> I have written this
>
>
> 'Store the number of the checkbox clicked.
> Dim nCheck As Integer
> nCheck = CInt(Mid(strHit, 5, 1))
>
> Debug.Print nCheck
>
> If c.GetAttrib("Check" & nCheck & "Image") =
> c.GetAttrib("CorrectAnswer") then
>
> c.SetAttrib "Check" & nCheck & "Image",
> "redbox.jpg"
>
> Else c.GetAttrib("Check" & nCheck & "Image") =
> c.GetAttrib("Check" &
> nCheck & "Image") then
>
> c.SetAttrib "Check" & nCheck & "Image",
> "checkempty.bmp"
> End If
>
>
> I keep getting an error that says "Can't Assign Constant"
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/k9LzLEW9xccJ.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120522/07887f06/attachment.htm>
More information about the Eprime
mailing list