[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ProgSoc] VBA Casting
Hey,
Bit of a newbie question I think, but here goes.
I've got a Collection that I've filled with a user-defined type
called 'Instrument'. I've then passed this Collection object to another
function which attempts to iterate through the Collection and do some 'stuff'
with each Instrument.
I get an error when I try to type-cast a Collection Item to an Instrument.
i.e. 'Instrument = Collection(1)'
I think it's kinda frikkin stupid that I can Add things to a Collection but
can't retrieve them, so I'm assuming there's some way to cast it back to an
Instrument.
Workaround anyone?
gleNN
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.