I have some constatn strings defined in a module, for example:
Public Const B707_FMC_Debug_Config_Spec As String = "fmc_debug_config_spec.txt"
In the main part of my code i dont want to have to repeat code for every new name so i am trying to pass in the current name and concatenate it to the rest of the string. So for example, i insted of using B707_FMC_Debug_Config_Spec to retrieve the string i need. I need to pass in the main name and then build the string so retrieve the constant string. The code looks like this:
curPrgmConfigSpec = selectedProgram & "_DSIL_Config_Spec"
Im passing in selectedProgram, wich in this case is B707. But instead of "curPrgmConfigSpec"containing
fmc_debug_config_spec.txt
which is what it should resolve to;
it contains
B707_DSIL_Config_Spec
How can i get it to resolve to the constant i have declared in the module and not be seen as just a simple stirng? Your help is greatly appreaciated.
ASKER