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
//bla bla bla
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

Thanks

Recommended Answers

All 3 Replies

Create a collection/array of BindingSource.

Yeah,a collection of array for the bindingsource will do.....!!!

is it like

Dim BindingSource(9) As String

is this can read the bindingsource from 1-10?

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.