Is there a way to define global string constants in DOS 3.50 power Basic for re-use from various places in the program?
I am writing a program with a lot of repetitively used text, each phrase of which I hoped would be stored once in the executable. It is pointless and creates many problems to read each phrase as a variable that will never be modified. There is so much that storing each occasion of a re-used phrase makes the executable grossly and unnecessarily inflated. I used to be under the impression that if the same string constant was repetitively quoted in the source, it was only stored once, and was multi-referenced. However, this appears not to be happening. I cannot work out any syntax to make this happen.
Richard Kemp of Kemputa Systems, Ysbyty Ystwyth, Wales, UK
I am writing a program with a lot of repetitively used text, each phrase of which I hoped would be stored once in the executable. It is pointless and creates many problems to read each phrase as a variable that will never be modified. There is so much that storing each occasion of a re-used phrase makes the executable grossly and unnecessarily inflated. I used to be under the impression that if the same string constant was repetitively quoted in the source, it was only stored once, and was multi-referenced. However, this appears not to be happening. I cannot work out any syntax to make this happen.
Richard Kemp of Kemputa Systems, Ysbyty Ystwyth, Wales, UK
Comment