Hi,
I try to name a string "dynamically". More precisely having a multiple variables holding strings and i would like to refer to these variables dinamically
Unfortunately this does not work so msgbox displays strSQL1 and strSQL2 instead of there content. What do i do wrong?
thanks
I try to name a string "dynamically". More precisely having a multiple variables holding strings and i would like to refer to these variables dinamically
Code:
Dim strSQL1 as string
dim strSQL2 as string
dim x as string
strSQL1="DELETE FROM table1;"
strSQL2="DELETE FROM tabel2"
for i=1 to 2
x="strSQL" & i
msgbox x
next i
thanks