TypeError: attribute-less object (assign or del)

scorder at incigna.com scorder at incigna.com
Thu May 18 16:54:00 EDT 2000


On Wed, 17 May 2000 09:49:21 -0400, scorder at incigna.com wrote:

>Here is the line of VBScript that works:
>site.frames("main").forms(1).item("txtpassword").value = 'foo'
>
>And here is the line of Python that doesn't work.
>Site.Frames("main").Forms(1).Item("txtpassword").Value = 'foo'
>
>Maybe its the nested level of collections throwing things off?  I
>don't have any problems modifying any of the properties of objects
>higher up the heiarchy.  I'm definately at a loss here.

Ok this code works.
TheForm = Site.Frames("main").Forms(1)
TheForm("txtpassword").Value = 'foo'

Why I have to assign to a temporary variable first is beyond me but
I'm just happy that it works now.  Thanks for the help.

-Sam Corder



More information about the Python-list mailing list