R
RSH
How do I go about creating an object name in a loop?
I have a class named objSample
Dim j As Integer
For j = 1 To 10
Dim inpFile As System.Web.UI.HtmlControls.HtmlInputFile =
FindControl(("UploadedFile" & j))
Dim "obj" & j as new objSample
("obj" & j).Prop1 = "Test1"
("obj" & j).Prop2 = "Test2"
Next
Am I going about this wrong? I have a situation where I need to iterate
through a series of objects that relate to form fields.
Thank for any help!
Ron
I have a class named objSample
Dim j As Integer
For j = 1 To 10
Dim inpFile As System.Web.UI.HtmlControls.HtmlInputFile =
FindControl(("UploadedFile" & j))
Dim "obj" & j as new objSample
("obj" & j).Prop1 = "Test1"
("obj" & j).Prop2 = "Test2"
Next
Am I going about this wrong? I have a situation where I need to iterate
through a series of objects that relate to form fields.
Thank for any help!
Ron