Larry,
I've just noticed with my last posted example program that an array (which starts with the word sub...) is being listed as a sub routine in the IDE.
The line:
SubKeyHive[y] = retval
is being listed as a sub routine called:
KeyHive[y] = retval
It seems that anything starting with the word sub is indeed listed as a routine.
I tried subx = 1 and it appeared as a subroutine x = 1.
I think it needs to look for the word sub with a space after it, that solves the problem.
Please see attached.
Thanks,
Andy.