I'm sure this can be done, but for some reason I can't find out how to do it. Anyway, the problem I am having is this;

If I have some objects called player1, player2, player3, etc... and I have a function with inputs, anyfunction(ByVal X as Integer), how can I use this value X, along with code, such that I can do things such as playerX.attribute ???

Thanks for the help,
JMC