Hi all,
does someone know if it were possible to use the Eval function to do following, and if so - how to do it. Cause I am failed.
Thing is I store strings in 7 different variables. They are named
strValue1
strValue2
strValue3
...
strValue7
And for a specific output I want to join this values in one string. I know this is all very easy, but I thought it could be accomplished with the Eval function in a for - next - loop.
But if I do it with this Eval function, it says it doesent find strValue1. If I call Eval(strValue1) and strValue1 = "Hello", than it says there is no value "Hello".
Can anyone help. It's just that I love to learn.
Kind regards,
Mary.H
does someone know if it were possible to use the Eval function to do following, and if so - how to do it. Cause I am failed.
Thing is I store strings in 7 different variables. They are named
strValue1
strValue2
strValue3
...
strValue7
And for a specific output I want to join this values in one string. I know this is all very easy, but I thought it could be accomplished with the Eval function in a for - next - loop.
Code:
For i=1 to 7
strBuffer = Eval("strValue" & i) 'strBuffer should so have the value of strValue1 - if i = 1
Endstring = Endstring & ", " & strBuffer
Next
But if I do it with this Eval function, it says it doesent find strValue1. If I call Eval(strValue1) and strValue1 = "Hello", than it says there is no value "Hello".
Can anyone help. It's just that I love to learn.
Kind regards,
Mary.H