BrianMH
04-19-2011, 08:00 AM
Hi,
I am looking at creating my first class. Instead of assigning each property individually is there a way for me to pass it an array and have those properties set from the array.
So instead of
myclass.property1 = "asdf"
myclass.property2 = "safd"
myclass.property3 = 1234
I just pass it the array of "asdf", "safd", 1234 and it assigns those properties automatically?
Thanks
I am looking at creating my first class. Instead of assigning each property individually is there a way for me to pass it an array and have those properties set from the array.
So instead of
myclass.property1 = "asdf"
myclass.property2 = "safd"
myclass.property3 = 1234
I just pass it the array of "asdf", "safd", 1234 and it assigns those properties automatically?
Thanks