Posts

Showing posts with the label basic

How to declare a constant in BASIC

How to declare a constant in BASIC Unfortunately, I’m having trouble figuring out how to do some things, because Google is clogged with tutorials of “programming basics” and Visual Basic. So I have to ask: in old-skool BASIC, I know I can use constants like #RED , but how do I define a constant? #RED This might be better for retrocomputing SE, but afaik, there are a multitude of "old-skool" BASICs and many likely have variations in syntax – 0 0 Jun 25 at 15:13 As James eluded to, there is no one correct answer, however -most- versions of BASIC used the keyword CONST. Those that did not have such a keyword the programmer usually had his/her own style of naming including all capital letters, underscores, pre-pending names with "CONST_" or some similar method to regul...