Is there an nice short way of reading all of the textbox values on a form into an array? What I am hoping for is something like:
?![]()
Please Login or Register to view this content.
Thank-you!
Is there an nice short way of reading all of the textbox values on a form into an array? What I am hoping for is something like:
?![]()
Please Login or Register to view this content.
Thank-you!
Sorry there is no TextBoxCollection but there are other methods you could try.
For example, this which uses the Controls collection of the form.
![]()
Please Login or Register to view this content.
Last edited by Norie; 04-03-2016 at 05:27 AM.
If posting code please use code tags, see here.
Thank-you!
Norie -
A little off-topic, but I noticed you Dim'd your int as long, which jogged my memory of seeing a post somewhere saying not to bother with Integer types, Dim them all as Long. Can you explain the reasoning?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks