mushin
Programmer
- Oct 4, 2000
- 49
How do I distinquish between a variable (MyVar)
and a string literal named "MyVar" ????
To clarify, I am passing a string var to a sub proc
and if I do this :
myProc tmpMyVar
then the contents of the var are passed..BUT,
If I do this:
dim fieldName as String
fieldName = "MyVar"
myProc "tmp" & fieldName
then all that is passed is the literal string "tmpMyVar"
So how can I create my var name and pass it's contents,
not just it's name.....
I do this in other lanquages and am just not that familiar with VB !!!!
Any help would be appreciated.....
thx
and a string literal named "MyVar" ????
To clarify, I am passing a string var to a sub proc
and if I do this :
myProc tmpMyVar
then the contents of the var are passed..BUT,
If I do this:
dim fieldName as String
fieldName = "MyVar"
myProc "tmp" & fieldName
then all that is passed is the literal string "tmpMyVar"
So how can I create my var name and pass it's contents,
not just it's name.....
I do this in other lanquages and am just not that familiar with VB !!!!
Any help would be appreciated.....
thx