Download the free trial version
Questions (Windows Mobile) Post any question regarding Basic4ppc.
ComboBox/Table
11-09-2008, 04:51 PM
Knows the basics
Join Date: Aug 2007
Location: Arkansas
Posts: 68
ComboBox/Table
I never worked with a ComboBox(or ListBox) But have worked with Tables.
I'm having a hard time seeing a connection with the two(ComboBox/Table).
I've done searches,but it didn't seem to produce the answer I'm looking for.
Like:
Selecting from a drop down(or list)and how to Implement your selection to a table.
Using your text box to work in unison with ComboBox.
Oh,Im adding data(not files).
Last edited by cdeane : 11-09-2008 at 05:04 PM .
11-09-2008, 05:17 PM
Basic4ppc Expert
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Using a Table a Combobox or a ListBox depends on what you wanr to do and show.
Tables are used to show many data, mainly for databases, where you have several entries for each dataset.
ComboBoxes and ListBoxes are used to select one item, not a dataset, out of a certain number.
The ComboBoxes schow only the selected item and take less space on the screen.
With ListBoxes you can show more than one item that gives the user a better overlook of the possible choices, but they need more space on the screen. It's up to you the programm to dimension it's size for convenience.
I hope that this short explanation makes it a bit more clear.
Best regards.
11-09-2008, 07:24 PM
Knows the basics
Join Date: Aug 2007
Location: Arkansas
Posts: 68
I was hoping to open a choice of tables I want in a combobox
to enter data in.
I have 3 Tables to choose from.
Each Table have two sets of data(hence the textbox(s).
11-09-2008, 08:07 PM
Basic4ppc Expert
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Could you more precise on what you want to do. Do you have asimple example or already some code to look at ?
Best regards.
11-09-2008, 08:44 PM
Knows the basics
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Not really.Code is what im looking for.
But actually this is what Ive been working with.
Code:
Sub Globals ' Declare the global variables here. End Sub Sub App_Start Form1.Show table1.AddCol(cNumber, " Yellow " , 50 , false ) Table1.AddCol (cString, " PPH " , 50 ) Table1.AddCol (cString, " RPM " , 50 ) table2.AddCol(cNumber, " Brown " , 50 , false ) Table2.AddCol (cString, " PPH " , 50 ) Table2.AddCol (cString, " RPM " , 50 ) table3.AddCol(cNumber, " Red " , 50 , false ) Table3.AddCol (cString, " PPH " , 50 ) Table3.AddCol (cString, " RPM " , 50 ) table4.AddCol(cNumber, " Green " , 50 , false ) Table4.AddCol (cString, " PPH " , 50 ) Table4.AddCol (cString, " RPM " , 50 ) table5.AddCol(cNumber, " Black " , 50 , false ) Table5.AddCol (cString, " PPH " , 50 ) Table5.AddCol (cString, " RPM " , 50 ) combobox1.Add( " Yellow " ) combobox1.Add( " Brown " ) combobox1.Add( " Red " ) combobox1.Add( " Green " ) combobox1.Add( " Black " ) End Sub Sub Button1_Click If ComboBox1.SelectedIndex = " Yellow " Then Table1.BringToFrontEnd If PanelTB.BringToFrontEnd Sub Sub Button2_Click End Sub
Like I said Im sure this is of no help.frusrtaning Im Sure.
Last edited by cdeane : 11-09-2008 at 08:55 PM .
11-09-2008, 09:20 PM
Basic4ppc Expert
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Here you have two possibilities to BringToFront your Tables according to the selected item, Button1, or index, Button2, in the ComboBox.
Best regards.
11-09-2008, 09:35 PM
Knows the basics
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Sorry Klaus,I have 6.3
11-09-2008, 09:54 PM
Basic4ppc Expert
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Here is a version 6.30 file.
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
ComboBox Value
RandomCoder
Basic4ppc Wishlist
7
11-18-2011 11:08 AM
ComboBox
ceaser
Questions (Windows Mobile)
2
08-25-2008 03:52 PM
ComboBox
Raytracer
Italian Forum
3
04-15-2008 04:15 PM
IgnoreKey in ComboBox?
kyto
Questions (Windows Mobile)
1
09-11-2007 04:51 AM
ComboBox propterty
Scubaticus
Basic4ppc Wishlist
2
06-28-2007 07:47 PM
All times are GMT. The time now is 03:11 AM .