Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading data to display in a control array

Status
Not open for further replies.

gtgirlie

Programmer
Jun 26, 2001
1
US
first, let me say that i am new to your forum mainly because i am new to vb : ) i checked through the previous posts and didnt find exactly what i was looking for, but i apologize if im asking the same question that has been asked before...

i am using vb6 to build an application which reads in lines [routes] of a .dat file which is tab delimeted and displays the route information on the screen and allows the user to pick multiple routes (via a checkbox) and continue on to another screen (i am currently reading in and separating the fields to be displayed in the controls by putting the fields in an array using split() ). i have determined that the best way to read in the info from the file (which changes length dependant on the number of routes represented) is going to be to use a control array to build them dynamically at run time. i have found how you dynamically add buttons or dynamically add checkboxes, but i need to add many different controls for one route (ie a check box and 14 labels to hold the fields)...and display the information in the controls. i hope im not too confusing :-/

anyone have any tips/hints/suggestions for a newbie??

thanks so much for your time!!
~katie
 
You might want to think about building an OCX control with all of the fields that go towards making a single route. You can then dynamically add the control with all of the data intact.

Take a look in the documentation about building controls.

Chaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top