ComboBox/Table

cdeane

Member
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:

klaus

Expert
Licensed User
Longtime User
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.
 

cdeane

Member
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).
 

cdeane

Member
Not really.Code is what im looking for.
But actually this is what Ive been working with.


B4X:
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.BringToFront
End If

PanelTB.BringToFront

End Sub

Sub Button2_Click



End Sub

Like I said Im sure this is of no help.frusrtaning Im Sure.
 

Attachments

  • rpmdos.zip
    718 bytes · Views: 164
Last edited:
Top