[IronPython] Array Access Problem
Kirk Olynyk
kirko at microsoft.com
Thu May 5 18:55:48 CEST 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://mail.python.org/pipermail/ironpython-users/attachments/20050505/34f6fb9f/attachment.html>
More information about the Ironpython-users
mailing list