Z,

as a short intermission :

this

quote:
? "Pinging the $Array[$z], please wait a moment".

won't work because of this :

quote:
Note: Unlike regular variables, arrays can not be used inside strings and can also not be assigned a value on the command line.

_________________________