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

BASCOM-AVR : Const - how to Create a Const and set a default value? : REPLY

$
0
0
Hi Tim, it's not rely clear to me... A Constant is a non editable constant value. You will define it in Sourcecode and this is, what it is... uneditable. If you define Const CommandDoSomething = &H02 then CommandDoSomething is &H02 ... unchangeable! maybe you're thinking at something like this: DIM GLOBAL_LOW_BATT_THRESH as BYte Const Const_LOW_BATT_THRESH = &H02 Const Const_LOW_BATT_THRESH_DEFAULT = &H18 ... GLOBAL_LOW_BATT_THRESH = Const_LOW_BATT_THRESH_DEFAULT do ... loop end. best, michael

Viewing all articles
Browse latest Browse all 20638

Trending Articles



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