[python-win32] translating VB into Python...

Tim Roberts timr at probo.com
Tue May 15 23:41:10 CEST 2007


Michael March wrote:
> Here is another example in context:
>   
>>>> mybug.Field("BG_DESCRIPTION")
>>>>         
> u'Test Set: Mercury Tours UI\nTest: [1]Welcome Page\nRun: Run_9-11_11-43-36\nSte
> p: Forms\n\nDescription:\nCheck the forms on the page:\n    - Input fields\n
> - Lists\n    - Radio buttons\n    - Checkboxes\n\nExpected result:\n1. The input
>  fields should be left aligned.\n2.'
>
>   
>>>> mybug.Field("BG_DESCRIPTION").Value = "123"
>>>>         
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'unicode' object has no attribute 'Value'
>   

The "Value" suggestion was clearly bad advice on my part.  What do you
get if you just do this:
    mybug.Field("BG_DESCRIPTION") = "123'

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list