Mika,
Oops, I overlooked the error message that you specified at the end of
your post. Here is your error message:
'SetAttrib is not a method of the object'
Yes, that is a different matter. I also failed to look carefully at
your inline code, which may have triggered that error. In particular, a
line like
c.SetAttrib("avatar") = "Chicago.jpg"
would trigger that error (I actually just tried that to make sure). The
proper form would be
c.SetAttrib "avatar", "Chicago.jpg"
Please look at the Context Object topic in the E-Basic Help facility for
more information on SetAttrib and GetAttrib. I cannot quite figure out
why your mistake would trigger that particular error though.
That said, in your latest message you say that you get the error message
on a line that instead uses c.GetAttrib, with proper syntax, so I may
not have yet gotten to your issue.
-- David McFarlane