troubleshooting Question

String manipulation problems in VB6

Avatar of tazrebel
tazrebel asked on
ProgrammingVisual Basic Classic
6 Comments3 Solutions669 ViewsLast Modified:
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    
which is what it should resolve to;
it contains  
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.
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 3 Answers and 6 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 3 Answers and 6 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004