I am wondering if you can work with controls dynamically but are not created dynamically.
Example:
I have three textbox controls: txtItem1.Text, txtItem2.Text, txtItem3.Text
Could I write a function that passes in the number and value and then I can set these through a function?
Would be something like so:
Thanks for your help in advance.Code:Public Sub sbChangeValue(ByVal iItemNum As Integer, ByVal sValue As String) Eval(txtItem[iItemNum].Text) = sValue End Sub




Reply With Quote