Dear Valued Members,

I have many textboxes in control array. Each of them holds numerical data. I need a visual basic 6 code, few lines preferably, that will enable me to add the values. The values are of the same data type.

Kind regards.

Recommended Answers

All 3 Replies

you need to refer the textbox by its index and collect the values in a loop.

Dear Debasisdas,

Thank you so much for the reply. I tried what you instructed me to do because that is the most logical thing to do but I got stuck. It beats flat how to go about it. Honsetly, I'm not that good in the field yet. I better say this, "I am still learning it". Please help me out on this one.

Kind regards.

you need to refer the textbox by its index and collect the values in a loop.

Dear Debasisdas,

I am very sorry to have bothered you about my problem. I made a silly mistake in writing the code. I've seen the error and the problem is now solved.

Thanks again for the care shown.
Kindest regards.

you need to refer the textbox by its index and collect the values in a loop.

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.