Hi i know the title seems a little bit confusing, let me explain.

Let say i have 10 properties of bindingsource.
The names are: bindingsource1, bindingsource2, bindingsource3, ....., bindingsource10

i want to develop a code using loop for these properties..

For i = 1 to 10
bindingsourcei
Next i

Is it possible to replace the number in the bindingsource with i?
so, it will be bindingsourcei
and with this bindingsourcei inside the loop, the i will change from 1 to 10

I am thinking of using array/collection, but i wonder how?

Thanks

Dim bindingsourcearry() As BindingSource

u can access and modify each bindingsource by using bindingsourcearry(i)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.