How to Define Global Variables and Constants
Keywords: Define Global Variables and Constants
Question:
My question has to do with, for example, being able to define global
Errror Codes and using them inside User Define Functions.
Answer:
Make a defined subbroutine like
#DefineSubroutine InitConstants()
a=5
b=6
c=7
d=8
return
#EndSubroutine
Then in the main script AND inside EACH #DefineFunction that needs them just add a
InitConstants()
line to define the constants. Note that the constant definition MUST be a #DefineSubroutine, NOT a
#DefineFuntion.
Article ID: W15347