September 26, 2022, 12:12:34 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Code being listed as a sub routine

Started by Andy, October 15, 2016, 12:53:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

October 15, 2016, 12:53:29 AM Last Edit: October 15, 2016, 05:17:16 AM by Andy
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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.