[IronPython] Array Access Problem

Kirk Olynyk kirko at microsoft.com
Thu May 5 09:55:48 PDT 2005


I can't seem to change the members of an array. Is this a known problem?

 

import sys

 

sys.LoadAssemblyByName("System")

sys.LoadAssemblyByName("System.Drawing")

 

from System import*

from System.Drawing import *

 

apt = Array.CreateInstance(Point, 1)

apt[0] = Point(1,2)

print apt[0]

apt[0].X = 0    # change the x-coordinate

print apt[0]    # check to see if it set

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.dreamhost.com/pipermail/users-ironpython.com/attachments/20050505/34f6fb9f/attachment.htm


More information about the users-ironpython.com mailing list