Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20642

BASCOM-AVR : CONFIG SUBMODE = NEW Problem and Question : REPLY

$
0
0
Hello Mark and thank you for your reply. [quote:0b161438d9] you really should read the help. [/quote:0b161438d9] I did sir. [quote:0b161438d9] When you use CONFIG SUBMODE=NEW, most behaviour is changed : - there is no need to DECLARE a sub/function before you call it. [/quote:0b161438d9] The old Declares were remarked. [quote:0b161438d9] But, the actual sub/function code must be placed before the actual call! [/quote:0b161438d9] OK. This explains it. So really, when using CONFIG SUBMODE=NEW, it is best to have all subs in a .inc file with the $Include statement at the top. That would virtually put them all before any calls are made. Makes sense since the old way required Declare Sub to be before any calling - just a little counter intuitive since it appeared that the Config statement somehow allowed no difference to where the Subs are located; by virtue of the compiler finding them first with the $Include at the top, the same requirement is met. Thanks again for the reply, Tim [/quote]

Viewing all articles
Browse latest Browse all 20642


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>