I am (still) converting an old asp web app / vb6 dll to aspx / vb.net
I am now biting on a fairly simple function in vbscript: the execute() function
What the vbscript does is the following: It reads in a variable name and its (string) value from a database in a loop.
The variables were then created and set to the value by calling the execute functio:
here is a code snippet:
read.... do while ... strVarName = ds("varname") strVarValue = ds("varvalue") call execute(strVarName=""" & strVarValue & """") loop
after this there existed a variable with the name and value as requested
In vb.net I would like to do something similar. I will have to declare all possible variables I suppose, but it would be nice to be able to keep the loop.
If not I'll have to recode a fill procedure that assigns all values, but maybe someone here has a good suggestion